diff options
author | Sergey Kandaurov <pluknet@nginx.com> | 2020-02-28 13:09:52 +0300 |
---|---|---|
committer | Sergey Kandaurov <pluknet@nginx.com> | 2020-02-28 13:09:52 +0300 |
commit | 8c90e6f440f432908ad70002bb6acb1f9aec1758 (patch) | |
tree | c0e071f6e36aaee67526aa8c63d6f9aebc8d890b /src/http/ngx_http_request.c | |
parent | 27e5e87784f1464e9c40f31e8c119918073fb90b (diff) | |
download | nginx-8c90e6f440f432908ad70002bb6acb1f9aec1758.tar.gz nginx-8c90e6f440f432908ad70002bb6acb1f9aec1758.zip |
Transport parameters stub, to complete handshake.
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r-- | src/http/ngx_http_request.c | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 7f62643c1..318933a40 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -1358,6 +1358,17 @@ ngx_http_quic_handshake(ngx_event_t *rev) return; } + static const uint8_t params[12] = "\x00\x0a\x00\x3a\x00\x01\x00\x00\x09\x00\x01\x03"; + + if (SSL_set_quic_transport_params(c->ssl->connection, params, + sizeof(params)) == 0) + { + ngx_log_error(NGX_LOG_INFO, rev->log, 0, + "SSL_set_quic_transport_params() failed"); + ngx_http_close_connection(c); + return; + } + n = SSL_do_handshake(c->ssl->connection); ngx_log_debug1(NGX_LOG_DEBUG_EVENT, c->log, 0, "SSL_do_handshake: %d", n); @@ -1747,7 +1758,6 @@ ngx_http_quic_handshake_handler(ngx_event_t *rev) } #endif - ngx_http_close_connection(c); } |