ports/www/nginx/files/extra-patch-nginx-ct-LibreSSL
Jochen Neumeister 005fc9862b www/nginx: make easier to read and maintain:
* Objectives:
 - make easier to read and maintain
 - Module config in a single section
 - use OPTIONS framwework where possible
* Add options groups for mail and http
* Use options groups to set _IMPLIES instead of large .if HTTP and MAIL blocks
* Rename all _VERSION vars to align with the OPTION name
* Add DEVEL_KIT option so we can automate
* Separate bundled and 3rd party modules
* Order options alphabetically
* Pass openssl dir to configure
* Separate external modules in separate makefile

www/nginx is buildable again with this:
* Fix sub-paths for DSO_EXTMODS introducing ${WRKSRC_mod}
* Be smarter about the if ${PORT_OPTIONS:MDSO}
* move post-install-OPT-on to where possible
* Add some OPT_NGINX_VER if used multiple times

Reviewed by:	brnrd
Differential Revision:	https://reviews.freebsd.org/D14773
2018-03-28 15:02:00 +00:00

20 lines
744 B
Text

--- ../ nginx-ct-1.3.2/ngx_ssl_ct_module.c.orig 2016-11-30 22:58:29.000000000 +0100
+++ ../nginx-ct-1.3.2/ngx_ssl_ct_module.c 2017-02-11 19:42:19.741572000 +0100
@@ -170,7 +170,7 @@
#endif
}
-#ifndef OPENSSL_IS_BORINGSSL
+#if !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
/* add OpenSSL TLS extension */
if (SSL_CTX_add_server_custom_ext(ssl_ctx, NGX_SSL_CT_EXT,
&ngx_ssl_ct_ext_cb, NULL, NULL, NULL, NULL) == 0)
@@ -184,7 +184,7 @@
return NGX_CONF_OK;
}
-#ifndef OPENSSL_IS_BORINGSSL
+#if !defined(OPENSSL_IS_BORINGSSL) && !defined(LIBRESSL_VERSION_NUMBER)
int ngx_ssl_ct_ext_cb(SSL *s, unsigned int ext_type, const unsigned char **out,
size_t *outlen, int *al, void *add_arg)
{