diff options
Diffstat (limited to 'kex.h')
-rw-r--r-- | kex.h | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: kex.h,v 1.108 2019/09/06 03:30:42 djm Exp $ */ | 1 | /* $OpenBSD: kex.h,v 1.109 2019/09/06 05:23:55 djm Exp $ */ |
2 | 2 | ||
3 | /* | 3 | /* |
4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. | 4 | * Copyright (c) 2000, 2001 Markus Friedl. All rights reserved. |
@@ -45,6 +45,18 @@ | |||
45 | # define EC_POINT void | 45 | # define EC_POINT void |
46 | #endif /* WITH_OPENSSL */ | 46 | #endif /* WITH_OPENSSL */ |
47 | 47 | ||
48 | #ifdef WITH_OPENSSL | ||
49 | #include <openssl/bn.h> | ||
50 | #include <openssl/dh.h> | ||
51 | #include <openssl/ec.h> | ||
52 | #include <openssl/ecdsa.h> | ||
53 | #else /* OPENSSL */ | ||
54 | #define BIGNUM void | ||
55 | #define DH void | ||
56 | #define EC_KEY void | ||
57 | #define EC_GROUP void | ||
58 | #endif /* WITH_OPENSSL */ | ||
59 | |||
48 | #define KEX_COOKIE_LEN 16 | 60 | #define KEX_COOKIE_LEN 16 |
49 | 61 | ||
50 | #define KEX_DH1 "diffie-hellman-group1-sha1" | 62 | #define KEX_DH1 "diffie-hellman-group1-sha1" |