comparison src/http/modules/ngx_http_ssl_module.c @ 3959:b1f48fa31e6c

MSIE export versions are rare now, so RSA 512 key is generated on demand and is shared among all hosts instead of pregenerating for every HTTPS host on configuraiton phase. This decreases start time for configuration with large number of HTTPS hosts.
author Igor Sysoev <igor@sysoev.ru>
date Wed, 20 Jul 2011 12:59:24 +0000
parents 1e90599af73b
children 0832a6997227
comparison
equal deleted inserted replaced
3958:9223a0753e36 3959:b1f48fa31e6c
463 if (conf->prefer_server_ciphers) { 463 if (conf->prefer_server_ciphers) {
464 SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE); 464 SSL_CTX_set_options(conf->ssl.ctx, SSL_OP_CIPHER_SERVER_PREFERENCE);
465 } 465 }
466 466
467 /* a temporary 512-bit RSA key is required for export versions of MSIE */ 467 /* a temporary 512-bit RSA key is required for export versions of MSIE */
468 if (ngx_ssl_generate_rsa512_key(&conf->ssl) != NGX_OK) { 468 SSL_CTX_set_tmp_rsa_callback(conf->ssl.ctx, ngx_ssl_rsa512_key_callback);
469 return NGX_CONF_ERROR;
470 }
471 469
472 if (ngx_ssl_dhparam(cf, &conf->ssl, &conf->dhparam) != NGX_OK) { 470 if (ngx_ssl_dhparam(cf, &conf->ssl, &conf->dhparam) != NGX_OK) {
473 return NGX_CONF_ERROR; 471 return NGX_CONF_ERROR;
474 } 472 }
475 473