lsquic_parse_ietf.h revision 022d9812
1/* Copyright (c) 2017 - 2019 LiteSpeed Technologies Inc.  See LICENSE. */
2#ifndef LSQUIC_PARSE_IETF_H
3#define LSQUIC_PARSE_IETF_H 1
4
5/* IETF QUIC v1 and Q050 use virtually the same CRYPTO frame format -- the only
6 * difference is the first byte.
7 */
8int
9lsquic_ietf_v1_parse_crypto_frame (const unsigned char *buf, size_t rem_packet_sz,
10                                        struct stream_frame *stream_frame);
11int
12lsquic_ietf_v1_gen_crypto_frame (unsigned char *buf, unsigned char first_byte,
13        size_t buf_len, uint64_t offset, size_t size, gcf_read_f gcf_read,
14        void *stream);
15
16#endif
17