openssl: Check for LIBSSH2_OPENSSL in order to compile with openssl
This commit is contained in:
parent
aba11380a1
commit
b20bfeb3e5
@ -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 */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user