summaryrefslogtreecommitdiff
path: root/kex.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 /kex.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 'kex.c')
-rw-r--r--kex.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/kex.c b/kex.c
index fff44335c..ce0bf8809 100644
--- a/kex.c
+++ b/kex.c
@@ -90,9 +90,9 @@ static const struct kexalg kexalgs[] = {
90# endif /* OPENSSL_HAS_NISTP521 */ 90# endif /* OPENSSL_HAS_NISTP521 */
91#endif /* OPENSSL_HAS_ECC */ 91#endif /* OPENSSL_HAS_ECC */
92#endif /* WITH_OPENSSL */ 92#endif /* WITH_OPENSSL */
93#ifdef HAVE_EVP_SHA256 93#if defined(HAVE_EVP_SHA256) || !defined(WITH_OPENSSL)
94 { KEX_CURVE25519_SHA256, KEX_C25519_SHA256, 0, SSH_DIGEST_SHA256 }, 94 { KEX_CURVE25519_SHA256, KEX_C25519_SHA256, 0, SSH_DIGEST_SHA256 },
95#endif /* HAVE_EVP_SHA256 */ 95#endif /* HAVE_EVP_SHA256 || !WITH_OPENSSL */
96 { NULL, -1, -1, -1}, 96 { NULL, -1, -1, -1},
97}; 97};
98 98