lsquic_tokgen.h revision a74702c6
1/* Copyright (c) 2017 - 2022 LiteSpeed Technologies Inc. See LICENSE. */ 2#ifndef LSQUIC_TOKEN_H 3#define LSQUIC_TOKEN_H 1 4 5struct lsquic_engine_public; 6struct sockaddr; 7struct lsquic_packet_in; 8struct lsquic_cid; 9 10struct token_generator; 11 12struct token_generator * 13lsquic_tg_new (struct lsquic_engine_public *); 14 15void 16lsquic_tg_destroy (struct token_generator *); 17 18/* `reset_token' must be IQUIC_SRESET_TOKEN_SZ bytes in length */ 19void 20lsquic_tg_generate_sreset (struct token_generator *, 21 const struct lsquic_cid *cid, unsigned char *reset_token); 22 23#endif 24