comparison src/event/ngx_event_quic_transport.h @ 8191: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
comparison
equal deleted inserted replaced
8190:d10118e38943 8191:9c3be23ddbe7
288 288
289 289
290 typedef struct { 290 typedef struct {
291 ngx_log_t *log; 291 ngx_log_t *log;
292 292
293 struct ngx_quic_secret_s *secret; 293 ngx_quic_keys_t *keys;
294 struct ngx_quic_secret_s *next; 294
295 ngx_msec_t received; 295 ngx_msec_t received;
296 uint64_t number; 296 uint64_t number;
297 uint8_t num_len; 297 uint8_t num_len;
298 uint32_t trunc; 298 uint32_t trunc;
299 uint8_t flags; 299 uint8_t flags;