]> git.ipfire.org Git - thirdparty/apache/httpd.git/commitdiff
mod_ssl: Follow up to r1913815: szCryptoDevice to NULL when !MODSSL_HAVE_ENGINE_API
authorYann Ylavic <ylavic@apache.org>
Tue, 20 Feb 2024 10:37:30 +0000 (10:37 +0000)
committerYann Ylavic <ylavic@apache.org>
Tue, 20 Feb 2024 10:37:30 +0000 (10:37 +0000)
Latest OpenSSL versions removed the ENGINE API completely, still provide NULL
SSLModConfigRec::szCryptoDevice since it's used outside MODSSL_HAVE_ENGINE_API.

SSLModConfigRec is a private struct, so no MMN change.

* modules/ssl/ssl_private(SSLModConfigRec):
  Provide szCryptoDevice (NULL) even if !MODSSL_HAVE_ENGINE_API.

git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@1915889 13f79535-47bb-0310-9956-ffa450edef68

modules/ssl/ssl_private.h

index d6673ee976263e6fb3c4dea3c381c79008b84c15..e26caf04b84eaff03dacc46178b3df95bd78c6b7 100644 (file)
@@ -658,9 +658,7 @@ typedef struct {
     apr_array_header_t   *aRandSeed;
 #endif
 
-#if defined(HAVE_OPENSSL_ENGINE_H) && defined(HAVE_ENGINE_INIT)
-    const char     *szCryptoDevice;
-#endif
+    const char     *szCryptoDevice; /* ENGINE device (if available) */
 
 #ifdef HAVE_OCSP_STAPLING
     const ap_socache_provider_t *stapling_cache;