diff --git a/src/openssl.c b/src/openssl.c index b26842b..056b0b7 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 */