openssl: Check for LIBSSH2_OPENSSL in order to compile with openssl

This commit is contained in:
Marc Hoersken 2014-03-22 23:33:56 +01:00
parent aba11380a1
commit b20bfeb3e5

View File

@ -40,6 +40,8 @@
#include "libssh2_priv.h" #include "libssh2_priv.h"
#ifdef LIBSSH2_OPENSSL /* compile only if we build with openssl */
#include <string.h> #include <string.h>
#ifndef EVP_MAX_BLOCK_LENGTH #ifndef EVP_MAX_BLOCK_LENGTH
@ -814,3 +816,5 @@ _libssh2_pub_priv_keyfile(LIBSSH2_SESSION *session,
EVP_PKEY_free(pk); EVP_PKEY_free(pk);
return st; return st;
} }
#endif /* LIBSSH2_OPENSSL */