opnsense-ports/security/stunnel/files/patch-src_verify.c
Franco Fichtner 476fd92714 */*: sync with upstream
Taken from: HardenedBSD
2018-08-11 10:19:35 +02:00

11 lines
479 B
C

--- src/verify.c.orig 2018-08-10 09:06:51 UTC
+++ src/verify.c
@@ -346,7 +346,7 @@ NOEXPORT int cert_check_local(X509_STORE
cert=X509_STORE_CTX_get_current_cert(callback_ctx);
subject=X509_get_subject_name(cert);
-#if OPENSSL_VERSION_NUMBER<0x10100006L
+#if (OPENSSL_VERSION_NUMBER<0x10100006L) || defined(LIBRESSL_VERSION_NUMBER)
#define X509_STORE_CTX_get1_certs X509_STORE_get1_certs
#endif
/* modern API allows retrieving multiple matching certificates */