comparison src/http/ngx_http_request.c @ 8169:bd006bd520a9 quic

QUIC set_encryption_secrets callback.
author Sergey Kandaurov <pluknet@nginx.com>
date Fri, 28 Feb 2020 13:09:51 +0300
parents b507592c15a7
children 53a5cdbe500c
comparison
equal deleted inserted replaced
8168:b507592c15a7 8169:bd006bd520a9
781 b->pos += qc->token.len; 781 b->pos += qc->token.len;
782 782
783 uint64_t plen = ngx_quic_parse_int(&b->pos); 783 uint64_t plen = ngx_quic_parse_int(&b->pos);
784 /* draft-ietf-quic-tls-23#section-5.4.2: 784 /* draft-ietf-quic-tls-23#section-5.4.2:
785 * the Packet Number field is assumed to be 4 bytes long 785 * the Packet Number field is assumed to be 4 bytes long
786 * draft-ietf-quic-tls-23#section-5.4.3: 786 * draft-ietf-quic-tls-23#section-5.4.[34]:
787 * AES-Based header protection samples 16 bytes 787 * AES-Based and ChaCha20-Based header protections sample 16 bytes
788 */ 788 */
789 u_char *sample = b->pos + 4; 789 u_char *sample = b->pos + 4;
790 790
791 #if (NGX_DEBUG) 791 #if (NGX_DEBUG)
792 if (c->log->log_level & NGX_LOG_DEBUG_EVENT) { 792 if (c->log->log_level & NGX_LOG_DEBUG_EVENT) {