Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_tokens.c @ 8415:b4e6b7049984 quic
QUIC: normalize header inclusion.
Stop including QUIC headers with no user-serviceable parts inside.
This allows to provide a much cleaner QUIC interface. To cope with that,
ngx_quic_derive_key() is now explicitly exported for v3 and quic modules.
Additionally, this completely hides the ngx_quic_keys_t internal type.
author | Sergey Kandaurov <pluknet@nginx.com> |
---|---|
date | Tue, 13 Apr 2021 12:38:34 +0300 |
parents | e19723c40d28 |
children | 4117aa7fa38e |
comparison
equal
deleted
inserted
replaced
8414:915c2f7092ed | 8415:b4e6b7049984 |
---|---|
6 | 6 |
7 #include <ngx_config.h> | 7 #include <ngx_config.h> |
8 #include <ngx_core.h> | 8 #include <ngx_core.h> |
9 #include <ngx_event.h> | 9 #include <ngx_event.h> |
10 #include <ngx_sha1.h> | 10 #include <ngx_sha1.h> |
11 #include <ngx_event_quic_protection.h> | 11 #include <ngx_event_quic_connection.h> |
12 | 12 |
13 | 13 |
14 #define NGX_QUIC_MAX_TOKEN_SIZE 64 | 14 #define NGX_QUIC_MAX_TOKEN_SIZE 64 |
15 /* SHA-1(addr)=20 + sizeof(time_t) + retry(1) + odcid.len(1) + odcid */ | 15 /* SHA-1(addr)=20 + sizeof(time_t) + retry(1) + odcid.len(1) + odcid */ |
16 | 16 |