Mercurial > hg > nginx-quic
comparison src/http/modules/ngx_http_ssl_module.c @ 1219:86c5c9288acc
SNI support
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Tue, 29 May 2007 15:21:09 +0000 |
parents | 8dfb3aa75de2 |
children | 33d6c994a0b2 |
comparison
equal
deleted
inserted
replaced
1218:e081e9c2291c | 1219:86c5c9288acc |
---|---|
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 |