]> git.kaiwu.me - nginx.git/commitdiff
Removed ENGINE_load_builtin_engines() call.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 30 Jan 2012 07:38:27 +0000 (07:38 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 30 Jan 2012 07:38:27 +0000 (07:38 +0000)
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.

src/event/ngx_event_openssl.c

index 01c99f43b18189fd3d827a9d21f9ddeaccb37e3a..f393334ade6bfc01f08c4eaffc563df1f331af5d 100644 (file)
@@ -92,8 +92,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);