summaryrefslogtreecommitdiff
path: root/kexecdhc.c
diff options
context:
space:
mode:
authorDamien Miller <djm@mindrot.org>2015-01-15 02:21:31 +1100
committerDamien Miller <djm@mindrot.org>2015-01-15 02:28:36 +1100
commit72ef7c148c42db7d5632a29f137f8b87b579f2d9 (patch)
tree47954a387f4260cc8b1e0ff33bbbaf22fd6f11fc /kexecdhc.c
parent4f38c61c68ae7e3f9ee4b3c38bc86cd39f65ece9 (diff)
support --without-openssl at configure time
Disables and removes dependency on OpenSSL. Many features don't work and the set of crypto options is greatly restricted. This will only work on system with native arc4random or /dev/urandom. Considered highly experimental for now.
Diffstat (limited to 'kexecdhc.c')
-rw-r--r--kexecdhc.c12
1 files changed, 3 insertions, 9 deletions
diff --git a/kexecdhc.c b/kexecdhc.c
index 2f7629cca..2019940e5 100644
--- a/kexecdhc.c
+++ b/kexecdhc.c
@@ -26,6 +26,8 @@
26 26
27#include "includes.h" 27#include "includes.h"
28 28
29#if defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC)
30
29#include <sys/types.h> 31#include <sys/types.h>
30 32
31#include <stdio.h> 33#include <stdio.h>
@@ -42,8 +44,6 @@
42#include "dh.h" 44#include "dh.h"
43#include "ssh2.h" 45#include "ssh2.h"
44 46
45#ifdef OPENSSL_HAS_ECC
46
47#include <openssl/ecdh.h> 47#include <openssl/ecdh.h>
48 48
49void 49void
@@ -156,10 +156,4 @@ kexecdh_client(Kex *kex)
156 BN_clear_free(shared_secret); 156 BN_clear_free(shared_secret);
157 kex_finish(kex); 157 kex_finish(kex);
158} 158}
159#else /* OPENSSL_HAS_ECC */ 159#endif /* defined(WITH_OPENSSL) && defined(OPENSSL_HAS_ECC) */
160void
161kexecdh_client(Kex *kex)
162{
163 fatal("ECC support is not enabled");
164}
165#endif /* OPENSSL_HAS_ECC */