Mercurial > hg > nginx
diff src/event/ngx_event_quic_transport.h @ 8621:9c3be23ddbe7 quic
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.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Mon, 02 Nov 2020 18:21:34 +0300 |
parents | 867c189f875d |
children | fe53def49945 |
line wrap: on
line diff
--- a/src/event/ngx_event_quic_transport.h Thu Oct 29 21:50:49 2020 +0000 +++ b/src/event/ngx_event_quic_transport.h Mon Nov 02 18:21:34 2020 +0300 @@ -290,8 +290,8 @@ typedef struct { ngx_log_t *log; - struct ngx_quic_secret_s *secret; - struct ngx_quic_secret_s *next; + ngx_quic_keys_t *keys; + ngx_msec_t received; uint64_t number; uint8_t num_len;