summaryrefslogtreecommitdiff
path: root/kex.h
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2019-10-02 10:54:28 +1000
committerDamien Miller <djm@mindrot.org>2019-10-02 10:54:28 +1000
commitedd1d3a6261aecbf9a55944fd7be1db83571b46e (patch)
treebebd81104eda00c6b432ecb50122fb007338fc1b /kex.h
parent13c508dfed9f25e6e54c984ad00a74ef08539e70 (diff)
remove duplicate #includes
Prompted by Jakub Jelen
Diffstat (limited to 'kex.h')
-rw-r--r--kex.h15
1 files changed, 3 insertions, 12 deletions
diff --git a/kex.h b/kex.h
index 6465df88d..a5ae6ac05 100644
--- a/kex.h
+++ b/kex.h
@@ -30,6 +30,9 @@
30#include "crypto_api.h" 30#include "crypto_api.h"
31 31
32#ifdef WITH_OPENSSL 32#ifdef WITH_OPENSSL
33# include <openssl/bn.h>
34# include <openssl/dh.h>
35# include <openssl/ecdsa.h>
33# ifdef OPENSSL_HAS_ECC 36# ifdef OPENSSL_HAS_ECC
34# include <openssl/ec.h> 37# include <openssl/ec.h>
35# else /* OPENSSL_HAS_ECC */ 38# else /* OPENSSL_HAS_ECC */
@@ -45,18 +48,6 @@
45# define EC_POINT void 48# define EC_POINT void
46#endif /* WITH_OPENSSL */ 49#endif /* WITH_OPENSSL */
47 50
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
60#define KEX_COOKIE_LEN 16 51#define KEX_COOKIE_LEN 16
61 52
62#define KEX_DH1 "diffie-hellman-group1-sha1" 53#define KEX_DH1 "diffie-hellman-group1-sha1"