diff src/event/ngx_event_quic.h @ 8563: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
line wrap: on
line diff
--- a/src/event/ngx_event_quic.h	Wed Sep 30 20:54:46 2020 +0300
+++ b/src/event/ngx_event_quic.h	Thu Oct 01 10:04:35 2020 +0300
@@ -86,6 +86,7 @@
 
 
 typedef struct {
+    ngx_ssl_t                 *ssl;
     ngx_quic_tp_t              tp;
     ngx_flag_t                 retry;
     ngx_flag_t                 require_alpn;
@@ -114,7 +115,7 @@
 };
 
 
-void ngx_quic_run(ngx_connection_t *c, ngx_ssl_t *ssl, ngx_quic_conf_t *conf);
+void ngx_quic_run(ngx_connection_t *c, ngx_quic_conf_t *conf);
 ngx_connection_t *ngx_quic_open_stream(ngx_connection_t *c, ngx_uint_t bidi);
 void ngx_quic_finalize_connection(ngx_connection_t *c, ngx_uint_t err,
     const char *reason);