1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-06-18 03:00:42 -04:00
ports/www/tomcat-native/files/patch-src_sslutils.c
Bernard Spil 7030a9c847 www/tomcat-native: Fix build with LibreSSL
- Remove IGNORE for LibreSSL
  - Add patches for OPENSSL_VERSION_NUMBER checks
  - Disable engine support for LibreSSL
  - Add compat macro and function

PR:		215196
2017-03-26 18:57:11 +00:00

11 lines
518 B
C

--- src/sslutils.c.orig 2016-04-19 09:15:43 UTC
+++ src/sslutils.c
@@ -504,7 +504,7 @@ static int ssl_verify_OCSP(int ok, X509_
* may yield NULL. Return early, but leave the ctx error as is. */
return OCSP_STATUS_UNKNOWN;
}
-#if OPENSSL_VERSION_NUMBER < 0x10100000L
+#if OPENSSL_VERSION_NUMBER < 0x10100000L || defined(LIBRESSL_VERSION_NUMBER)
else if (cert->valid && X509_check_issued(cert,cert) == X509_V_OK) {
#else
/* No need to check cert->valid, because ssl_verify_OCSP() only