aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-04-13 10:23:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-04-17 18:00:52 +0200
commita95bc8a0163625ac551d8d73bec08a15aba658ad (patch)
tree47cf54f9f920fc4d5d4390dca3ad96a880614b4c
parentf3a19d8c963a0510ca67a5292436ac5c40c8e788 (diff)
downloadlibssh-a95bc8a0163625ac551d8d73bec08a15aba658ad.tar.gz
libssh-a95bc8a0163625ac551d8d73bec08a15aba658ad.tar.xz
libssh-a95bc8a0163625ac551d8d73bec08a15aba658ad.zip
kex1: Use libcrypto-compat.h for RSA_get0_key with OpenSSL
Signed-off-by: Nikos Mavrogiannopoulos <nmav@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
-rw-r--r--src/kex1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kex1.c b/src/kex1.c
index ead206b4..328ed7f1 100644
--- a/src/kex1.c
+++ b/src/kex1.c
@@ -37,6 +37,10 @@
#include "libssh/wrapper.h"
#include "libssh/dh.h"
+#if defined(HAVE_LIBCRYPTO)
+#include "libcrypto-compat.h"
+#endif
+
/* SSHv1 functions */
/* makes a STRING contating 3 strings : ssh-rsa1,e and n */