comparison src/http/modules/ngx_http_ssl_module.c @ 3140:ba9a8ba4207e

*) issue warning instead of failure: this is too common case *) use ngx_log_error(), since OpenSSL does not set an error on the failure
author Igor Sysoev <igor@sysoev.ru>
date Fri, 18 Sep 2009 09:10:16 +0000
parents d6285ff81d35
children 823f72db46c0
comparison
equal deleted inserted replaced
3139:5f6144fc674d 3140:ba9a8ba4207e
404 404
405 if (SSL_CTX_set_tlsext_servername_callback(conf->ssl.ctx, 405 if (SSL_CTX_set_tlsext_servername_callback(conf->ssl.ctx,
406 ngx_http_ssl_servername) 406 ngx_http_ssl_servername)
407 == 0) 407 == 0)
408 { 408 {
409 ngx_ssl_error(NGX_LOG_EMERG, cf->log, 0, 409 ngx_log_error(NGX_LOG_WARN, cf->log, 0,
410 "SSL_CTX_set_tlsext_servername_callback() failed"); 410 "nginx was build with SNI support, however, now it is linked "
411 return NGX_CONF_ERROR; 411 "dynamically to an OpenSSL library which has no tlsext support, "
412 "therefore SNI is not available");
412 } 413 }
413 414
414 #endif 415 #endif
415 416
416 cln = ngx_pool_cleanup_add(cf->pool, 0); 417 cln = ngx_pool_cleanup_add(cf->pool, 0);