comparison src/http/modules/ngx_http_ssl_module.c @ 306:55328d69b335 NGINX_0_5_23

nginx 0.5.23 *) Feature: the ngx_http_ssl_module supports Server Name Indication TLS extension. *) Feature: the "fastcgi_catch_stderr" directive. Thanks to Nick S. Grechukh, OWOX project. *) Bugfix: a segmentation fault occurred in master process if two virtual servers should bind() to the overlapping ports. *) Bugfix: if nginx was built with ngx_http_perl_module and perl supported threads, then during second reconfiguration the error messages "panic: MUTEX_LOCK" and "perl_parse() failed" were issued. *) Bugfix: in the HTTPS protocol in the "proxy_pass" directive.
author Igor Sysoev <http://sysoev.ru>
date Mon, 04 Jun 2007 00:00:00 +0400
parents 29a6403156b0
children 95183808f549
comparison
equal deleted inserted replaced
305:892db29abb4f 306:55328d69b335
343 343
344 if (ngx_ssl_create(&conf->ssl, conf->protocols, conf) != NGX_OK) { 344 if (ngx_ssl_create(&conf->ssl, conf->protocols, conf) != NGX_OK) {
345 return NGX_CONF_ERROR; 345 return NGX_CONF_ERROR;
346 } 346 }
347 347
348 #ifdef SSL_CTRL_SET_TLSEXT_HOSTNAME
349
350 if (SSL_CTX_set_tlsext_servername_callback(conf->ssl.ctx,
351 ngx_http_ssl_servername)
352 == 0)
353 {
354 ngx_ssl_error(NGX_LOG_EMERG, cf->log, 0,
355 "SSL_CTX_set_tlsext_servername_callback() failed");
356 return NGX_CONF_ERROR;
357 }
358
359 #endif
360
348 cln = ngx_pool_cleanup_add(cf->pool, 0); 361 cln = ngx_pool_cleanup_add(cf->pool, 0);
349 if (cln == NULL) { 362 if (cln == NULL) {
350 return NGX_CONF_ERROR; 363 return NGX_CONF_ERROR;
351 } 364 }
352 365