]> git.kaiwu.me - nginx.git/commit
QUIC: refactored key handling.
authorSergey Kandaurov <pluknet@nginx.com>
Mon, 2 Nov 2020 15:21:34 +0000 (18:21 +0300)
committerSergey Kandaurov <pluknet@nginx.com>
Mon, 2 Nov 2020 15:21:34 +0000 (18:21 +0300)
commit0aef8438f4d0c49351205f4e32fd9237b5494064
tree66c636deb3a26271f8d21497575d9de8bfd9432e
parent8ed020db75c98361588fa65b71629304a77d0d13
QUIC: refactored key handling.

All key handling functionality is moved into ngx_quic_protection.c.
Public structures from ngx_quic_protection.h are now private and new
methods are available to manipulate keys.

A negotiated cipher is cached in QUIC connection from the set secret callback
to avoid calling SSL_get_current_cipher() on each encrypt/decrypt operation.
This also reduces the number of unwanted c->ssl->connection occurrences.
src/event/ngx_event_quic.c
src/event/ngx_event_quic.h
src/event/ngx_event_quic_protection.c
src/event/ngx_event_quic_protection.h
src/event/ngx_event_quic_transport.h