comparison src/event/quic/ngx_event_quic_protection.h @ 9152:2880f60a80c3

QUIC: posted generating TLS Key Update next keys. Since at least f9fbeb4ee0de and certainly after 924882f42dea, which TLS Key Update support predates, queued data output is deferred to a posted push handler. To address timing signals after these changes, generating next keys is now posted to run after the push handler.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 25 Aug 2023 13:51:38 +0400
parents 756ab66de10e
children ff98ae7d261e
comparison
equal deleted inserted replaced
9151:933f37273282 9152:2880f60a80c3
97 ngx_uint_t ngx_quic_keys_available(ngx_quic_keys_t *keys, 97 ngx_uint_t ngx_quic_keys_available(ngx_quic_keys_t *keys,
98 enum ssl_encryption_level_t level); 98 enum ssl_encryption_level_t level);
99 void ngx_quic_keys_discard(ngx_quic_keys_t *keys, 99 void ngx_quic_keys_discard(ngx_quic_keys_t *keys,
100 enum ssl_encryption_level_t level); 100 enum ssl_encryption_level_t level);
101 void ngx_quic_keys_switch(ngx_connection_t *c, ngx_quic_keys_t *keys); 101 void ngx_quic_keys_switch(ngx_connection_t *c, ngx_quic_keys_t *keys);
102 ngx_int_t ngx_quic_keys_update(ngx_connection_t *c, ngx_quic_keys_t *keys); 102 void ngx_quic_keys_update(ngx_event_t *ev);
103 ngx_int_t ngx_quic_encrypt(ngx_quic_header_t *pkt, ngx_str_t *res); 103 ngx_int_t ngx_quic_encrypt(ngx_quic_header_t *pkt, ngx_str_t *res);
104 ngx_int_t ngx_quic_decrypt(ngx_quic_header_t *pkt, uint64_t *largest_pn); 104 ngx_int_t ngx_quic_decrypt(ngx_quic_header_t *pkt, uint64_t *largest_pn);
105 void ngx_quic_compute_nonce(u_char *nonce, size_t len, uint64_t pn); 105 void ngx_quic_compute_nonce(u_char *nonce, size_t len, uint64_t pn);
106 ngx_int_t ngx_quic_ciphers(ngx_uint_t id, ngx_quic_ciphers_t *ciphers, 106 ngx_int_t ngx_quic_ciphers(ngx_uint_t id, ngx_quic_ciphers_t *ciphers,
107 enum ssl_encryption_level_t level); 107 enum ssl_encryption_level_t level);