From b20bfeb3e519119a48509a1099c06d65aa7da1d7 Mon Sep 17 00:00:00 2001 From: Marc Hoersken Date: Sat, 22 Mar 2014 23:33:56 +0100 Subject: [PATCH] openssl: Check for LIBSSH2_OPENSSL in order to compile with openssl --- src/openssl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openssl.c b/src/openssl.c index b26842b9..056b0b78 100644 --- a/src/openssl.c +++ b/src/openssl.c @@ -40,6 +40,8 @@ #include "libssh2_priv.h" +#ifdef LIBSSH2_OPENSSL /* compile only if we build with openssl */ + #include #ifndef EVP_MAX_BLOCK_LENGTH @@ -814,3 +816,5 @@ _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session, EVP_PKEY_free(pk); return st; } + +#endif /* LIBSSH2_OPENSSL */