Mercurial > hg > nginx
comparison src/event/quic/ngx_event_quic.c @ 8717:0a0b1de9ccab quic
QUIC: fixed expected TLS codepoint with final draft and BoringSSL.
A reasonable codepoint is always set[1] explicitly so that it doesn't
depend on the default library value that may change[2] in the future.
[1] https://boringssl.googlesource.com/boringssl/+/3d8b8c3d
[2] https://boringssl.googlesource.com/boringssl/+/c47bfce0
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 16 Mar 2021 13:48:28 +0300 |
parents | 44b4c6180106 |
children | fc64ab301bad |
comparison
equal
deleted
inserted
replaced
8716:1c48629cfa74 | 8717:0a0b1de9ccab |
---|---|
1801 if (SSL_CTX_get_max_early_data(qc->conf->ssl->ctx)) { | 1801 if (SSL_CTX_get_max_early_data(qc->conf->ssl->ctx)) { |
1802 SSL_set_quic_early_data_enabled(ssl_conn, 1); | 1802 SSL_set_quic_early_data_enabled(ssl_conn, 1); |
1803 } | 1803 } |
1804 #endif | 1804 #endif |
1805 | 1805 |
1806 #if BORINGSSL_API_VERSION >= 13 | |
1807 SSL_set_quic_use_legacy_codepoint(ssl_conn, qc->version != 1); | |
1808 #endif | |
1809 | |
1806 if (ngx_quic_new_sr_token(c, &qc->dcid, qc->conf->sr_token_key, | 1810 if (ngx_quic_new_sr_token(c, &qc->dcid, qc->conf->sr_token_key, |
1807 qc->tp.sr_token) | 1811 qc->tp.sr_token) |
1808 != NGX_OK) | 1812 != NGX_OK) |
1809 { | 1813 { |
1810 return NGX_ERROR; | 1814 return NGX_ERROR; |