summaryrefslogtreecommitdiff
path: root/kexecdh.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2019-10-09 22:59:48 +0100
committerColin Watson <cjwatson@debian.org>2019-10-09 23:39:39 +0100
commit767ee84d3465b6d244a9108de5c167a9ab866df9 (patch)
tree69b14ef6a62d7f133298a21d2ad6046f130b7801 /kexecdh.c
parentddeaf9ee7d5c6612b88f1c4a83fc6fbccb93bf60 (diff)
parentefef12825b9582c1710da3b7e50135870963d4f4 (diff)
New upstream release (8.1p1)
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) */