mirror of
https://gitea.invidious.io/iv-org/litespeed-quic.git
synced 2024-08-15 00:53:43 +00:00
Release 2.12.12
Undo change in 2.12.11
This commit is contained in:
parent
177a63db21
commit
df40e9cdd0
3 changed files with 7 additions and 8 deletions
|
@ -1,6 +1,6 @@
|
||||||
2020-10-08
|
2020-10-26
|
||||||
- 2.12.11
|
- 2.12.12
|
||||||
- [BUGFIX] Function that checks validity of handshake packets
|
- Undo changes in 2.12.11
|
||||||
|
|
||||||
2020-10-06
|
2020-10-06
|
||||||
- 2.12.10
|
- 2.12.10
|
||||||
|
|
|
@ -1675,8 +1675,7 @@ lsquic_get_h3_alpns (unsigned versions);
|
||||||
* been established: it will return incorrect result.
|
* been established: it will return incorrect result.
|
||||||
*/
|
*/
|
||||||
int
|
int
|
||||||
lsquic_is_valid_hs_packet (lsquic_engine_t *, const unsigned char *,
|
lsquic_is_valid_hs_packet (lsquic_engine_t *, const unsigned char *, size_t);
|
||||||
size_t bufsz, size_t packet_in_sz);
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Parse cid from packet stored in `buf' and store it to `cid'. Returns 0
|
* Parse cid from packet stored in `buf' and store it to `cid'. Returns 0
|
||||||
|
|
|
@ -88,7 +88,7 @@ is_valid_gquic_hs_packet (const unsigned char *buf, size_t bufsz,
|
||||||
|
|
||||||
int
|
int
|
||||||
lsquic_is_valid_hs_packet (struct lsquic_engine *engine,
|
lsquic_is_valid_hs_packet (struct lsquic_engine *engine,
|
||||||
const unsigned char *buf, size_t bufsz, size_t packet_in_sz)
|
const unsigned char *buf, size_t bufsz)
|
||||||
{
|
{
|
||||||
lsquic_ver_tag_t tag;
|
lsquic_ver_tag_t tag;
|
||||||
int is_valid;
|
int is_valid;
|
||||||
|
@ -104,7 +104,7 @@ lsquic_is_valid_hs_packet (struct lsquic_engine *engine,
|
||||||
case 0x80|0x00|0x20|0x10|0x08:
|
case 0x80|0x00|0x20|0x10|0x08:
|
||||||
case 0x80|0x40|0x20|0x10|0x00:
|
case 0x80|0x40|0x20|0x10|0x00:
|
||||||
case 0x80|0x00|0x20|0x10|0x00:
|
case 0x80|0x00|0x20|0x10|0x00:
|
||||||
is_valid = packet_in_sz >= IQUIC_MIN_INIT_PACKET_SZ
|
is_valid = bufsz >= IQUIC_MIN_INIT_PACKET_SZ
|
||||||
&& lsquic_is_valid_iquic_hs_packet(buf, bufsz, &tag);
|
&& lsquic_is_valid_iquic_hs_packet(buf, bufsz, &tag);
|
||||||
break;
|
break;
|
||||||
/* 1X00 XGGG: ID-22 long header */
|
/* 1X00 XGGG: ID-22 long header */
|
||||||
|
@ -122,7 +122,7 @@ lsquic_is_valid_hs_packet (struct lsquic_engine *engine,
|
||||||
case 0x80|0x00|0x20|0x00|0x08:
|
case 0x80|0x00|0x20|0x00|0x08:
|
||||||
case 0x80|0x40|0x20|0x00|0x00:
|
case 0x80|0x40|0x20|0x00|0x00:
|
||||||
case 0x80|0x00|0x20|0x00|0x00:
|
case 0x80|0x00|0x20|0x00|0x00:
|
||||||
is_valid = packet_in_sz >= IQUIC_MIN_INIT_PACKET_SZ
|
is_valid = bufsz >= IQUIC_MIN_INIT_PACKET_SZ
|
||||||
&& lsquic_is_valid_ietf_v1_or_Q046plus_hs_packet(buf, bufsz, &tag);
|
&& lsquic_is_valid_ietf_v1_or_Q046plus_hs_packet(buf, bufsz, &tag);
|
||||||
break;
|
break;
|
||||||
/* 01XX XGGG: ID-22 short header */
|
/* 01XX XGGG: ID-22 short header */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue