lsquic_parse_ietf.h revision 022d9812
1022d9812SDmitri Tikhonov/* Copyright (c) 2017 - 2019 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, 13022d9812SDmitri Tikhonov size_t buf_len, uint64_t offset, size_t size, gcf_read_f gcf_read, 14022d9812SDmitri Tikhonov void *stream); 15022d9812SDmitri Tikhonov 16022d9812SDmitri Tikhonov#endif 17