Mercurial > hg > nginx
comparison src/event/ngx_event_openssl.c @ 8232:253cf267f95a quic
Moved setting QUIC methods to runtime.
This allows listening to both https and http3 in the same server.
Also, the change eliminates the ssl_quic directive.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Wed, 18 Mar 2020 16:37:16 +0300 |
parents | b28ea685a56e |
children | 7f0981be07c4 |
comparison
equal
deleted
inserted
replaced
8231:78540e2160d0 | 8232:253cf267f95a |
---|---|
1454 "\"ssl_early_data\" is not supported on this platform, " | 1454 "\"ssl_early_data\" is not supported on this platform, " |
1455 "ignored"); | 1455 "ignored"); |
1456 #endif | 1456 #endif |
1457 | 1457 |
1458 return NGX_OK; | 1458 return NGX_OK; |
1459 } | |
1460 | |
1461 | |
1462 ngx_int_t | |
1463 ngx_ssl_quic(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_uint_t enable) | |
1464 { | |
1465 if (!enable) { | |
1466 return NGX_OK; | |
1467 } | |
1468 | |
1469 #if NGX_OPENSSL_QUIC | |
1470 | |
1471 ngx_quic_init_ssl_methods(ssl->ctx); | |
1472 return NGX_OK; | |
1473 | |
1474 #else | |
1475 | |
1476 ngx_log_error(NGX_LOG_WARN, ssl->log, 0, | |
1477 "\"ssl_quic\" is not supported on this platform"); | |
1478 return NGX_ERROR; | |
1479 | |
1480 #endif | |
1481 } | 1459 } |
1482 | 1460 |
1483 | 1461 |
1484 ngx_int_t | 1462 ngx_int_t |
1485 ngx_ssl_client_session_cache(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_uint_t enable) | 1463 ngx_ssl_client_session_cache(ngx_conf_t *cf, ngx_ssl_t *ssl, ngx_uint_t enable) |