Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.c @ 4414:e8c61e79364e
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 30 Jan 2012 07:38:27 +0000 |
parents | d620f497c50f |
children | 95ab6658654a |
comparison
equal
deleted
inserted
replaced
4413:23ea4e72c85a | 4414:e8c61e79364e |
---|---|
89 { | 89 { |
90 OPENSSL_config(NULL); | 90 OPENSSL_config(NULL); |
91 | 91 |
92 SSL_library_init(); | 92 SSL_library_init(); |
93 SSL_load_error_strings(); | 93 SSL_load_error_strings(); |
94 | |
95 ENGINE_load_builtin_engines(); | |
96 | 94 |
97 OpenSSL_add_all_algorithms(); | 95 OpenSSL_add_all_algorithms(); |
98 | 96 |
99 ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL); | 97 ngx_ssl_connection_index = SSL_get_ex_new_index(0, NULL, NULL, NULL, NULL); |
100 | 98 |