Mercurial > hg > nginx-quic
comparison src/mail/ngx_mail_ssl_module.c @ 6035:a84267233877
SSL: avoid SSL_CTX_set_tmp_rsa_callback() call with LibreSSL.
LibreSSL removed support for export ciphers and a call to
SSL_CTX_set_tmp_rsa_callback() results in an error left in the error
queue. This caused alerts "ignoring stale global SSL error (...called
a function you should not call) while SSL handshaking" on a first connection
in each worker process.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 23 Mar 2015 02:42:34 +0300 |
parents | ec01b1d1fff1 |
children | b2899e7d0ef8 |
comparison
equal
deleted
inserted
replaced
6034:3e847964ab55 | 6035:a84267233877 |
---|---|
419 | 419 |
420 if (conf->prefer_server_ciphers) { | 420 if (conf->prefer_server_ciphers) { |
421 SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE); | 421 SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE); |
422 } | 422 } |
423 | 423 |
424 #ifndef LIBRESSL_VERSION_NUMBER | |
424 SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback); | 425 SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback); |
426 #endif | |
425 | 427 |
426 if (ngx_ssl_dhparam(cf, &conf->ssl, &conf->dhparam) != NGX_OK) { | 428 if (ngx_ssl_dhparam(cf, &conf->ssl, &conf->dhparam) != NGX_OK) { |
427 return NGX_CONF_ERROR; | 429 return NGX_CONF_ERROR; |
428 } | 430 } |
429 | 431 |