Mercurial > hg > nginx
comparison src/event/ngx_event_quic_protection.h @ 8224:ae35ccba7aa6 quic
Extracted transport part of the code into separate file.
All code dealing with serializing/deserializing
is moved int srv/event/ngx_event_quic_transport.c/h file.
All macros for dealing with data are internal to source file.
The header file exposes frame types and error codes.
The exported functions are currently packet header parsers and writers
and frames parser/writer.
The ngx_quic_header_t structure is updated with 'log' member. This avoids
passing extra argument to parsing functions that need to report errors.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Wed, 18 Mar 2020 12:58:27 +0300 |
parents | 69345a26ba69 |
children | f85749b60e58 |
comparison
equal
deleted
inserted
replaced
8223:61f9b873e2e7 | 8224:ae35ccba7aa6 |
---|---|
6 | 6 |
7 #ifndef _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_ | 7 #ifndef _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_ |
8 #define _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_ | 8 #define _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_ |
9 | 9 |
10 | 10 |
11 struct ngx_quic_secret_s { | 11 typedef struct ngx_quic_secret_s { |
12 ngx_str_t secret; | 12 ngx_str_t secret; |
13 ngx_str_t key; | 13 ngx_str_t key; |
14 ngx_str_t iv; | 14 ngx_str_t iv; |
15 ngx_str_t hp; | 15 ngx_str_t hp; |
16 }; | 16 } ngx_quic_secret_t; |
17 | 17 |
18 | 18 |
19 typedef struct { | 19 typedef struct { |
20 ngx_quic_secret_t in; | 20 ngx_quic_secret_t in; |
21 ngx_quic_secret_t hs; | 21 ngx_quic_secret_t hs; |