]> git.kaiwu.me - nginx.git/commit
SSL: provided "nginx" appname when loading OpenSSL configs.
authorMaxim Dounin <mdounin@mdounin.ru>
Tue, 20 Jun 2023 22:29:55 +0000 (01:29 +0300)
committerMaxim Dounin <mdounin@mdounin.ru>
Tue, 20 Jun 2023 22:29:55 +0000 (01:29 +0300)
commit2038b46e25b74c16b36ce27f4c8064f2ab2af5a9
tree9a5c74244399c69a119c52ac1c434c848c4ce134
parent1c6183725247024f1bca73ac9a833098af7558af
SSL: provided "nginx" appname when loading OpenSSL configs.

Following OpenSSL 0.9.8f, OpenSSL tries to load application-specific
configuration section first, and then falls back to the "openssl_conf"
default section if application-specific section is not found, by using
CONF_modules_load_file(CONF_MFLAGS_DEFAULT_SECTION).  Therefore this
change is not expected to introduce any compatibility issues with existing
configurations.  It does, however, make it easier to configure specific
OpenSSL settings for nginx in system-wide OpenSSL configuration
(ticket #2449).

Instead of checking OPENSSL_VERSION_NUMBER when using the OPENSSL_init_ssl()
interface, the code now tests for OPENSSL_INIT_LOAD_CONFIG to be defined and
true, and also explicitly excludes LibreSSL.  This ensures that this interface
is not used with BoringSSL and LibreSSL, which do not provide additional
library initialization settings, notably the OPENSSL_INIT_set_config_appname()
call.
src/event/ngx_event_openssl.c