]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: ssl: remove a boringssl definition defined by recent boringssl libs
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 6 Feb 2025 09:48:25 +0000 (10:48 +0100)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 6 Feb 2025 09:48:25 +0000 (10:48 +0100)
This is the case for AWS-LC which derives from boringssl, where
X509_OBJECT_get0_X509_CRL() is already defined. There is definitively
no more need to define this function to build haproxy against TLS libs derived
from boringssl.

include/haproxy/openssl-compat.h

index ba3fd4e500eb13e829336ebd06632ac36d421ccc..f98aa79497a05a6d441feca8caea73e3f6b86e9b 100644 (file)
@@ -192,19 +192,6 @@ static inline STACK_OF(X509) *X509_chain_up_ref(STACK_OF(X509) *chain)
 
 #endif
 
-#ifdef OPENSSL_IS_BORINGSSL
-/*
- * Functions missing in BoringSSL
- */
-
-static inline X509_CRL *X509_OBJECT_get0_X509_CRL(const X509_OBJECT *a)
-{
-    if (a == NULL || a->type != X509_LU_CRL) {
-        return NULL;
-    }
-    return a->data.crl;
-}
-#endif
 
 #if (HA_OPENSSL_VERSION_NUMBER < 0x1010000fL) && (!defined(LIBRESSL_VERSION_NUMBER) || LIBRESSL_VERSION_NUMBER < 0x2070000fL)
 /*