diff options
author | Stefan Eissing <icing@apache.org> | 2021-11-03 14:27:39 +0000 |
---|---|---|
committer | Stefan Eissing <icing@apache.org> | 2021-11-03 14:27:39 +0000 |
commit | 6384a27d30968a080904044fd811fcae6882209d (patch) | |
tree | 6497a985e7341bb9b41c13fd163774bfff1f5165 /modules/ssl | |
parent | 547873051555fc0d4faf1a38daaa850a830401f6 (diff) | |
download | httpd-6384a27d30968a080904044fd811fcae6882209d.tar.gz |
* mod_ssl: fix in CHECK_PRIVKEY_ERROR for openssl 3.0
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1894716 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'modules/ssl')
-rw-r--r-- | modules/ssl/ssl_engine_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/ssl/ssl_engine_init.c b/modules/ssl/ssl_engine_init.c index a8c505c54d..34ec23349f 100644 --- a/modules/ssl/ssl_engine_init.c +++ b/modules/ssl/ssl_engine_init.c @@ -1388,7 +1388,7 @@ static APR_INLINE int modssl_DH_bits(DH *dh) #if OPENSSL_VERSION_NUMBER < 0x30000000L #define CHECK_PRIVKEY_ERROR(ec) (ERR_GET_FUNC(ec) != X509_F_X509_CHECK_PRIVATE_KEY) #else -#define CHECK_PRIVKEY_ERROR(ec) (ERR_GET_LIB != ERR_LIB_X509 \ +#define CHECK_PRIVKEY_ERROR(ec) (ERR_GET_LIB(ec) != ERR_LIB_X509 \ || (ERR_GET_REASON(ec) != X509_R_KEY_TYPE_MISMATCH \ && ERR_GET_REASON(ec) != X509_R_KEY_VALUES_MISMATCH \ && ERR_GET_REASON(ec) != X509_R_UNKNOWN_KEY_TYPE)) |