From bbaa3dc869ae6ace8e1c9257b26a3608d164f938 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 13 Apr 2018 10:23:04 +0200 Subject: [PATCH] kex1: Use libcrypto-compat.h for RSA_get0_key with OpenSSL Signed-off-by: Nikos Mavrogiannopoulos Reviewed-by: Andreas Schneider (cherry picked from commit a95bc8a0163625ac551d8d73bec08a15aba658ad) --- src/kex1.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */