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 a95bc8a016)
This commit is contained in:
Nikos Mavrogiannopoulos
2018-04-13 10:23:04 +02:00
committed by Andreas Schneider
parent 4f10d6cd57
commit bbaa3dc869

View File

@@ -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 */