1
0
mirror of https://github.com/libssh2/libssh2.git synced 2025-11-20 02:42:09 +03:00

Fix build since openssl 1.1.0 when ECDSA and/or RIPEMD are disabled (#666)

File: openssl.h

Notes:
In openssl 1.1.0 and later openssl decided to change some of the defines used to check if certain features are not compiled in the libraries. This updates the define checks.

Credit:
Harry Sintonen
Co-authored-by: Harry Sintonen <sintonen@iki.fi>
This commit is contained in:
Harry Sintonen
2022-04-05 03:00:04 +03:00
committed by GitHub
parent 79855b37d2
commit b95e758239

View File

@@ -115,7 +115,7 @@
# define LIBSSH2_DSA 1
#endif
#ifdef OPENSSL_NO_ECDSA
#if defined(OPENSSL_NO_ECDSA) || defined(OPENSSL_NO_EC)
# define LIBSSH2_ECDSA 0
#else
# define LIBSSH2_ECDSA 1
@@ -135,7 +135,7 @@
# define LIBSSH2_MD5 1
#endif
#ifdef OPENSSL_NO_RIPEMD
#if defined(OPENSSL_NO_RIPEMD) || defined(OPENSSL_NO_RMD160)
# define LIBSSH2_HMAC_RIPEMD 0
#else
# define LIBSSH2_HMAC_RIPEMD 1