--- ../nginx-ct-71bf4d2/ngx_ssl_ct_module.c.orig	2024-12-07 10:41:38.000000000 -0500
+++ ../nginx-ct-71bf4d2/ngx_ssl_ct_module.c	2025-02-04 13:44:15.064346000 -0500
@@ -135,7 +135,7 @@
             continue;
         }
 
-#ifndef OPENSSL_IS_BORINGSSL
+#if !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
         /* associate the sct_list with the cert */
         X509_set_ex_data(cert, ngx_ssl_ct_sct_list_index, sct_list);
 
@@ -165,7 +165,7 @@
 #endif
     }
 
-#ifndef OPENSSL_IS_BORINGSSL
+#if !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
     /* add OpenSSL TLS extension */
     int context = SSL_EXT_CLIENT_HELLO
                 | SSL_EXT_TLS1_2_SERVER_HELLO
@@ -181,7 +181,7 @@
     return NGX_CONF_OK;
 }
 
-#ifndef OPENSSL_IS_BORINGSSL
+#if !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
 static int ngx_ssl_ct_ext_cb(SSL *s, unsigned int ext_type, unsigned int context,
     const unsigned char **out, size_t *outlen, X509 *x, size_t chainidx,
     int *al, void *add_arg) {
