mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Add lsquic_parse_ietf.h forgotten in the previous commit
This commit is contained in:
parent
7a8b2ece3a
commit
022d9812f3
1 changed files with 16 additions and 0 deletions
16
src/liblsquic/lsquic_parse_ietf.h
Normal file
16
src/liblsquic/lsquic_parse_ietf.h
Normal file
|
@ -0,0 +1,16 @@
|
|||
/* Copyright (c) 2017 - 2019 LiteSpeed Technologies Inc. See LICENSE. */
|
||||
#ifndef LSQUIC_PARSE_IETF_H
|
||||
#define LSQUIC_PARSE_IETF_H 1
|
||||
|
||||
/* IETF QUIC v1 and Q050 use virtually the same CRYPTO frame format -- the only
|
||||
* difference is the first byte.
|
||||
*/
|
||||
int
|
||||
lsquic_ietf_v1_parse_crypto_frame (const unsigned char *buf, size_t rem_packet_sz,
|
||||
struct stream_frame *stream_frame);
|
||||
int
|
||||
lsquic_ietf_v1_gen_crypto_frame (unsigned char *buf, unsigned char first_byte,
|
||||
size_t buf_len, uint64_t offset, size_t size, gcf_read_f gcf_read,
|
||||
void *stream);
|
||||
|
||||
#endif
|
Loading…
Reference in a new issue