Welcome! Log In Create A New Profile

Advanced

[PATCH] Removed ENGINE_load_builtin_engines() call

Maxim Dounin
January 27, 2012 12:06PM
# HG changeset patch
# User Maxim Dounin <mdounin@mdounin.ru>
# Date 1327678891 -14400
# Node ID deb5cebcec4d223930d544c6a2e539950663aa59
# Parent a2559e3cb5453fc754d16ffda06dcb9130f4802a
Removed ENGINE_load_builtin_engines() call.

It's already called by OPENSSL_config(). Calling it again causes some
openssl engines (notably GOST) to corrupt memory, as they don't expect
to be created more than once.

diff --git a/src/event/ngx_event_openssl.c b/src/event/ngx_event_openssl.c
--- a/src/event/ngx_event_openssl.c
+++ b/src/event/ngx_event_openssl.c
@@ -91,8 +91,6 @@ ngx_ssl_init(ngx_log_t *log)
SSL_library_init();
SSL_load_error_strings();

- ENGINE_load_builtin_engines();
-
OpenSSL_add_all_algorithms();

ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL);

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Removed ENGINE_load_builtin_engines() call

Maxim Dounin 1439 January 27, 2012 12:06PM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 272
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready