Mercurial > hg > nginx-quic
comparison src/event/quic/ngx_event_quic_tokens.h @ 8412:e19723c40d28 quic
QUIC: separate files for tokens related processing.
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Tue, 13 Apr 2021 14:41:52 +0300 |
parents | |
children | 4117aa7fa38e |
comparison
equal
deleted
inserted
replaced
8411:bc910a5ec737 | 8412:e19723c40d28 |
---|---|
1 | |
2 /* | |
3 * Copyright (C) Nginx, Inc. | |
4 */ | |
5 | |
6 | |
7 #ifndef _NGX_EVENT_QUIC_TOKENS_H_INCLUDED_ | |
8 #define _NGX_EVENT_QUIC_TOKENS_H_INCLUDED_ | |
9 | |
10 | |
11 #include <ngx_config.h> | |
12 #include <ngx_core.h> | |
13 | |
14 | |
15 ngx_int_t ngx_quic_new_sr_token(ngx_connection_t *c, ngx_str_t *cid, | |
16 u_char *secret, u_char *token); | |
17 ngx_int_t ngx_quic_new_token(ngx_connection_t *c, u_char *key, | |
18 ngx_str_t *token, ngx_str_t *odcid, time_t expires, ngx_uint_t is_retry); | |
19 ngx_int_t ngx_quic_validate_token(ngx_connection_t *c, | |
20 u_char *key, ngx_quic_header_t *pkt); | |
21 | |
22 #endif /* _NGX_EVENT_QUIC_TOKENS_H_INCLUDED_ */ |