Skip to content

Commit f5bf086

Browse files
committed
* modules/ssl/ssl_engine_pphrase.c (modssl_load_engine_keypair): Fix
build (hopefully) for OpenSSL 3.x with OPENSSL_NO_ENGINE defined. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1914622 13f79535-47bb-0310-9956-ffa450edef68
1 parent d3a9704 commit f5bf086

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

modules/ssl/ssl_engine_pphrase.c

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -982,7 +982,12 @@ apr_status_t modssl_load_engine_keypair(server_rec *s, apr_pool_t *p,
982982
#if MODSSL_HAVE_OPENSSL_STORE
983983
SSLModConfigRec *mc = myModConfig(s);
984984

985-
if (!mc->szCryptoDevice)
985+
/* For OpenSSL 3.x, use the STORE-based API if either ENGINE
986+
* support was not present compile-time, or if it's built but
987+
* SSLCryptoDevice is not configured. */
988+
#if MODSSL_HAVE_ENGINE_API
989+
if (!mc->szCryptoDevice)
990+
#endif
986991
return modssl_load_keypair_store(s, p, vhostid, certid, keyid,
987992
pubkey, privkey);
988993
#endif

0 commit comments

Comments
 (0)