diff options
| author | Vladimir Homutov <vl@nginx.com> | 2021-04-13 14:41:52 +0300 |
|---|---|---|
| committer | Vladimir Homutov <vl@nginx.com> | 2021-04-13 14:41:52 +0300 |
| commit | e0b73cf6a2eba148e09fdbe2e16b9a53d1b546cc (patch) | |
| tree | 94930907e94929794f0193ef36a710e3118a220a /src/event/quic/ngx_event_quic_tokens.h | |
| parent | 8df0b6bb2c3477cd0666b796b4e1a7373c4a600c (diff) | |
| download | nginx-e0b73cf6a2eba148e09fdbe2e16b9a53d1b546cc.tar.gz nginx-e0b73cf6a2eba148e09fdbe2e16b9a53d1b546cc.tar.bz2 | |
QUIC: separate files for tokens related processing.
Diffstat (limited to 'src/event/quic/ngx_event_quic_tokens.h')
| -rw-r--r-- | src/event/quic/ngx_event_quic_tokens.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/event/quic/ngx_event_quic_tokens.h b/src/event/quic/ngx_event_quic_tokens.h new file mode 100644 index 000000000..f3185db22 --- /dev/null +++ b/src/event/quic/ngx_event_quic_tokens.h @@ -0,0 +1,22 @@ + +/* + * Copyright (C) Nginx, Inc. + */ + + +#ifndef _NGX_EVENT_QUIC_TOKENS_H_INCLUDED_ +#define _NGX_EVENT_QUIC_TOKENS_H_INCLUDED_ + + +#include <ngx_config.h> +#include <ngx_core.h> + + +ngx_int_t ngx_quic_new_sr_token(ngx_connection_t *c, ngx_str_t *cid, + u_char *secret, u_char *token); +ngx_int_t ngx_quic_new_token(ngx_connection_t *c, u_char *key, + ngx_str_t *token, ngx_str_t *odcid, time_t expires, ngx_uint_t is_retry); +ngx_int_t ngx_quic_validate_token(ngx_connection_t *c, + u_char *key, ngx_quic_header_t *pkt); + +#endif /* _NGX_EVENT_QUIC_TOKENS_H_INCLUDED_ */ |
