diff 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
line wrap: on
line diff
--- a/src/event/ngx_event_quic_protection.h
+++ b/src/event/ngx_event_quic_protection.h
@@ -8,12 +8,12 @@
 #define _NGX_EVENT_QUIC_PROTECTION_H_INCLUDED_
 
 
-struct ngx_quic_secret_s {
+typedef struct ngx_quic_secret_s {
     ngx_str_t                 secret;
     ngx_str_t                 key;
     ngx_str_t                 iv;
     ngx_str_t                 hp;
-};
+} ngx_quic_secret_t;
 
 
 typedef struct {