lsquic_parse_ietf.h revision b8fa6195
17d09751dSDmitri Tikhonov/* Copyright (c) 2017 - 2020 LiteSpeed Technologies Inc. See LICENSE. */ 2022d9812SDmitri Tikhonov#ifndef LSQUIC_PARSE_IETF_H 3022d9812SDmitri Tikhonov#define LSQUIC_PARSE_IETF_H 1 4022d9812SDmitri Tikhonov 5022d9812SDmitri Tikhonov/* IETF QUIC v1 and Q050 use virtually the same CRYPTO frame format -- the only 6022d9812SDmitri Tikhonov * difference is the first byte. 7022d9812SDmitri Tikhonov */ 8022d9812SDmitri Tikhonovint 9022d9812SDmitri Tikhonovlsquic_ietf_v1_parse_crypto_frame (const unsigned char *buf, size_t rem_packet_sz, 10022d9812SDmitri Tikhonov struct stream_frame *stream_frame); 11022d9812SDmitri Tikhonovint 12022d9812SDmitri Tikhonovlsquic_ietf_v1_gen_crypto_frame (unsigned char *buf, unsigned char first_byte, 13b8fa6195SDmitri Tikhonov size_t buf_len, lsquic_stream_id_t UNUSED_1, uint64_t offset, 14b8fa6195SDmitri Tikhonov int UNUSED_2, size_t size, gsf_read_f gsf_read, void *stream); 15022d9812SDmitri Tikhonov 16022d9812SDmitri Tikhonov#endif 17