]> git.kaiwu.me - nginx.git/commit
QUIC: support for setting QUIC methods with LibreSSL.
authorSergey Kandaurov <pluknet@nginx.com>
Thu, 20 Oct 2022 12:21:06 +0000 (16:21 +0400)
committerSergey Kandaurov <pluknet@nginx.com>
Thu, 20 Oct 2022 12:21:06 +0000 (16:21 +0400)
commitce65faea95598bac9c95686d1d211d9fcd0b1ee3
tree83d14c153501fc615aeed88f29a866bf6c2e4176
parent1ad1b85feb11285c5b65cc2d53c3f7ec54e6fabd
QUIC: support for setting QUIC methods with LibreSSL.

Setting QUIC methods is converted to use C99 designated initializers
for simplicity, as LibreSSL 3.6.0 has different SSL_QUIC_METHOD layout.

Additionally, only set_read_secret/set_write_secret callbacks are set.
Although they are preferred in LibreSSL over set_encryption_secrets,
better be on a safe side as LibreSSL has unexpectedly incompatible
set_encryption_secrets calling convention expressed in passing read
and write secrets split in separate calls, unlike this is documented
in old BoringSSL sources.  To avoid introducing further changes for
the old API, it is simply disabled.
src/event/quic/ngx_event_quic_ssl.c