aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2020-12-25 14:18:51 +0300
committerVladimir Homutov <vl@nginx.com>2020-12-25 14:18:51 +0300
commitfb655007a110e3bfd4e8eaba8b401d67fb283a9a (patch)
treeffd74769453e7b78c1eefdbfdf27c19e22ee8315 /src
parent49527110972d80d20000044e6e63f6a1a08af67f (diff)
downloadnginx-fb655007a110e3bfd4e8eaba8b401d67fb283a9a.tar.gz
nginx-fb655007a110e3bfd4e8eaba8b401d67fb283a9a.zip
QUIC: ngx_quic_module.
Diffstat (limited to 'src')
-rw-r--r--src/event/quic/ngx_event_quic.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic.c b/src/event/quic/ngx_event_quic.c
index 73cde84d5..9047f25a3 100644
--- a/src/event/quic/ngx_event_quic.c
+++ b/src/event/quic/ngx_event_quic.c
@@ -385,6 +385,29 @@ static ngx_chain_t *ngx_quic_split_bufs(ngx_connection_t *c, ngx_chain_t *in,
size_t len);
+static ngx_core_module_t ngx_quic_module_ctx = {
+ ngx_string("quic"),
+ NULL,
+ NULL
+};
+
+
+ngx_module_t ngx_quic_module = {
+ NGX_MODULE_V1,
+ &ngx_quic_module_ctx, /* module context */
+ NULL, /* module directives */
+ NGX_CORE_MODULE, /* module type */
+ NULL, /* init master */
+ NULL, /* init module */
+ NULL, /* init process */
+ NULL, /* init thread */
+ NULL, /* exit thread */
+ NULL, /* exit process */
+ NULL, /* exit master */
+ NGX_MODULE_V1_PADDING
+};
+
+
static SSL_QUIC_METHOD quic_method = {
#if BORINGSSL_API_VERSION >= 10
ngx_quic_set_read_secret,