Mercurial > hg > nginx
comparison src/core/ngx_core.h @ 8221:69345a26ba69 quic
Split transport and crypto parts into separate files.
New files:
src/event/ngx_event_quic_protection.h
src/event/ngx_event_quic_protection.c
The protection.h header provides interface to the crypto part of the QUIC:
2 functions to initialize corresponding secrets:
ngx_quic_set_initial_secret()
ngx_quic_set_encryption_secret()
and 2 functions to deal with packet processing:
ngx_quic_encrypt()
ngx_quic_decrypt()
Also, structures representing secrets are defined there.
All functions require SSL connection and a pool, only crypto operations
inside, no access to nginx connections or events.
Currently pool->log is used for the logging (instead of original c->log).
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Mon, 16 Mar 2020 19:00:47 +0300 |
parents | 4ae9ac69ab93 |
children | ae35ccba7aa6 |
comparison
equal
deleted
inserted
replaced
8220:7ada2feeac18 | 8221:69345a26ba69 |
---|---|
83 #include <ngx_cycle.h> | 83 #include <ngx_cycle.h> |
84 #include <ngx_resolver.h> | 84 #include <ngx_resolver.h> |
85 #if (NGX_OPENSSL) | 85 #if (NGX_OPENSSL) |
86 #include <ngx_event_openssl.h> | 86 #include <ngx_event_openssl.h> |
87 #include <ngx_event_quic.h> | 87 #include <ngx_event_quic.h> |
88 #include <ngx_event_quic_protection.h> | |
88 #endif | 89 #endif |
89 #include <ngx_process_cycle.h> | 90 #include <ngx_process_cycle.h> |
90 #include <ngx_conf_file.h> | 91 #include <ngx_conf_file.h> |
91 #include <ngx_module.h> | 92 #include <ngx_module.h> |
92 #include <ngx_open_file_cache.h> | 93 #include <ngx_open_file_cache.h> |