diff options
author | Darren Tucker <dtucker@dtucker.net> | 2019-05-17 10:54:51 +1000 |
---|---|---|
committer | Darren Tucker <dtucker@dtucker.net> | 2019-05-17 10:54:51 +1000 |
commit | 97370f6c2c3b825f8c577b7e6c00b1a98d30a6cf (patch) | |
tree | 217d73211fcf07d34c96c7294a295bbe589d81fd /kexecdh.c | |
parent | 633703babf8d9a88da85f23b800e1b88dec7cdbd (diff) |
Fix building w/out ECC.
Ifdef out ECC specific code so that that it'll build against an OpenSSL
configured w/out ECC. With & ok djm@
Diffstat (limited to 'kexecdh.c')
-rw-r--r-- | kexecdh.c | 26 |
1 files changed, 26 insertions, 0 deletions
@@ -208,4 +208,30 @@ kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob, kex->ec_client_key = NULL; return r; } + +#else + +#include "sshkey.h" +#include "kex.h" +#include "ssherr.h" + +int +kex_ecdh_keypair(struct kex *kex) +{ + return SSH_ERR_SIGN_ALG_UNSUPPORTED; +} + +int +kex_ecdh_enc(struct kex *kex, const struct sshbuf *client_blob, + struct sshbuf **server_blobp, struct sshbuf **shared_secretp) +{ + return SSH_ERR_SIGN_ALG_UNSUPPORTED; +} + +int +kex_ecdh_dec(struct kex *kex, const struct sshbuf *server_blob, + struct sshbuf **shared_secretp) +{ + return SSH_ERR_SIGN_ALG_UNSUPPORTED; +} #endif /* defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC) */ |