aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2018-04-13 10:23:04 +0200
committerAndreas Schneider <asn@cryptomilk.org>2018-06-29 17:17:03 +0200
commitbbaa3dc869ae6ace8e1c9257b26a3608d164f938 (patch)
treebdb42f85be7151b6c250ee27252e621de1deadc8
parent4f10d6cd5769e30e0df597fb0dd029541ca006be (diff)
downloadlibssh-bbaa3dc869ae6ace8e1c9257b26a3608d164f938.tar.gz
libssh-bbaa3dc869ae6ace8e1c9257b26a3608d164f938.tar.xz
libssh-bbaa3dc869ae6ace8e1c9257b26a3608d164f938.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> (cherry picked from commit a95bc8a0163625ac551d8d73bec08a15aba658ad)
-rw-r--r--src/kex1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/kex1.c b/src/kex1.c
index f4138284..63ea424d 100644
--- a/src/kex1.c
+++ b/src/kex1.c
@@ -36,6 +36,10 @@
#include "libssh/ssh1.h"
#include "libssh/wrapper.h"
+#if defined(HAVE_LIBCRYPTO)
+#include "libcrypto-compat.h"
+#endif
+
/* SSHv1 functions */
/* makes a STRING contating 3 strings : ssh-rsa1,e and n */