From a95bc8a0163625ac551d8d73bec08a15aba658ad 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 --- src/kex1.c | 4 ++++ 1 file changed, 4 insertions(+) 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 */