diff options
author | Colin Watson <cjwatson@debian.org> | 2019-10-09 22:59:48 +0100 |
---|---|---|
committer | Colin Watson <cjwatson@debian.org> | 2019-10-09 23:39:39 +0100 |
commit | 767ee84d3465b6d244a9108de5c167a9ab866df9 (patch) | |
tree | 69b14ef6a62d7f133298a21d2ad6046f130b7801 /kexecdh.c | |
parent | ddeaf9ee7d5c6612b88f1c4a83fc6fbccb93bf60 (diff) | |
parent | efef12825b9582c1710da3b7e50135870963d4f4 (diff) |
New upstream release (8.1p1)
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) */ |