File disable_openssl_debug_dump_certificate.patch of Package wpa_supplicant.24368

Index: wpa_supplicant-2.9/src/crypto/tls_openssl.c
===================================================================
--- wpa_supplicant-2.9.orig/src/crypto/tls_openssl.c
+++ wpa_supplicant-2.9/src/crypto/tls_openssl.c
@@ -5150,7 +5150,7 @@ static void openssl_debug_dump_cipher_li
 }
 
 
-#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(BORINGSSL_API_VERSION)
+#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(BORINGSSL_API_VERSION) && OPENSSL_VERSION_NUMBER >= 0x100020afL
 
 static const char * openssl_pkey_type_str(const EVP_PKEY *pkey)
 {
@@ -5214,7 +5214,7 @@ static void openssl_debug_dump_certifica
 
 static void openssl_debug_dump_certificate_chains(SSL_CTX *ssl_ctx)
 {
-#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(BORINGSSL_API_VERSION)
+#if !defined(LIBRESSL_VERSION_NUMBER) && !defined(BORINGSSL_API_VERSION) && OPENSSL_VERSION_NUMBER >= 0x100020afL
 	int res;
 
 	for (res = SSL_CTX_set_current_cert(ssl_ctx, SSL_CERT_SET_FIRST);
openSUSE Build Service is sponsored by