diff options
Diffstat (limited to 'kexecdh.c')
-rw-r--r-- | kexecdh.c | 28 |
1 files changed, 28 insertions, 0 deletions
@@ -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 | |||
216 | struct kex; | ||
217 | struct sshbuf; | ||
218 | struct sshkey; | ||
219 | |||
220 | int | ||
221 | kex_ecdh_keypair(struct kex *kex) | ||
222 | { | ||
223 | return SSH_ERR_SIGN_ALG_UNSUPPORTED; | ||
224 | } | ||
225 | |||
226 | int | ||
227 | kex_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 | |||
233 | int | ||
234 | kex_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) */ |