comparison src/event/ngx_event_quic.h @ 8101:bed310672f39 quic

QUIC: moved ssl configuration pointer to quic configuration. The ssl configuration is obtained at config time and saved for future use.
author Vladimir Homutov <vl@nginx.com>
date Thu, 01 Oct 2020 10:04:35 +0300
parents b31c02454539
children 6dac06dfe779
comparison
equal deleted inserted replaced
8100:b31c02454539 8101:bed310672f39
84 void *preferred_address; 84 void *preferred_address;
85 } ngx_quic_tp_t; 85 } ngx_quic_tp_t;
86 86
87 87
88 typedef struct { 88 typedef struct {
89 ngx_ssl_t *ssl;
89 ngx_quic_tp_t tp; 90 ngx_quic_tp_t tp;
90 ngx_flag_t retry; 91 ngx_flag_t retry;
91 ngx_flag_t require_alpn; 92 ngx_flag_t require_alpn;
92 u_char token_key[32]; /* AES 256 */ 93 u_char token_key[32]; /* AES 256 */
93 ngx_str_t sr_token_key; /* stateless reset token key */ 94 ngx_str_t sr_token_key; /* stateless reset token key */
112 ngx_buf_t *b; 113 ngx_buf_t *b;
113 ngx_quic_frames_stream_t fs; 114 ngx_quic_frames_stream_t fs;
114 }; 115 };
115 116
116 117
117 void ngx_quic_run(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_conf_t *conf); 118 void ngx_quic_run(ngx_connection_t *c, ngx_quic_conf_t *conf);
118 ngx_connection_t *ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi); 119 ngx_connection_t *ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi);
119 void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err, 120 void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err,
120 const char *reason); 121 const char *reason);
121 122
122 123