summaryrefslogtreecommitdiff
path: root/kexecdh.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexecdh.c')
-rw-r--r--kexecdh.c28
1 files changed, 28 insertions, 0 deletions
diff --git a/kexecdh.c b/kexecdh.c
index 0aeab2e9b..efb2e55a6 100644
--- a/kexecdh.c
+++ b/kexecdh.c
@@ -208,4 +208,32 @@ kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob,
208 kex->ec_client_key = NULL; 208 kex->ec_client_key = NULL;
209 return r; 209 return r;
210} 210}
211
212#else
213
214#include "ssherr.h"
215
216struct kex;
217struct sshbuf;
218struct sshkey;
219
220int
221kex_ecdh_keypair(struct kex *kex)
222{
223 return SSH_ERR_SIGN_ALG_UNSUPPORTED;
224}
225
226int
227kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob,
228 struct sshbuf **server_blobp, struct sshbuf **shared_secretp)
229{
230 return SSH_ERR_SIGN_ALG_UNSUPPORTED;
231}
232
233int
234kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob,
235 struct sshbuf **shared_secretp)
236{
237 return SSH_ERR_SIGN_ALG_UNSUPPORTED;
238}
211#endif /* defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC) */ 239#endif /* defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC) */