diff options
author | Luca Deri <lucaderi@users.noreply.github.com> | 2020-09-20 18:34:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-20 18:34:27 +0200 |
commit | ff1cc1fa418174c407f85fe19a21d5ef588c4e98 (patch) | |
tree | bb4c2dd8f443bc635714354a1630f5e6747fd6d7 /src/lib/protocols | |
parent | ea9177cc9397270172e16e10e2ed947c8471323c (diff) | |
parent | dcac633878e2975e3652739a461b121b27bd9aaa (diff) |
Merge pull request #1019 from IvanNardi/quic_fb
QUIC: add support for MVFST EXPERIMENTAL version
Diffstat (limited to 'src/lib/protocols')
-rw-r--r-- | src/lib/protocols/quic.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/lib/protocols/quic.c b/src/lib/protocols/quic.c index 2a4c7294b..5585fe3dc 100644 --- a/src/lib/protocols/quic.c +++ b/src/lib/protocols/quic.c @@ -64,6 +64,7 @@ extern int http_process_user_agent(struct ndpi_detection_module_struct *ndpi_str #define V_T051 0x54303531 #define V_MVFST_22 0xfaceb001 #define V_MVFST_27 0xfaceb002 +#define V_MVFST_EXP 0xfaceb00e #define QUIC_MAX_CID_LENGTH 20 @@ -131,6 +132,7 @@ static int is_version_supported(uint32_t version) version == V_T051 || version == V_MVFST_22 || version == V_MVFST_27 || + version == V_MVFST_EXP || is_quic_ver_greater_than(version, 23)); } static int is_version_with_encrypted_header(uint32_t version) @@ -786,7 +788,8 @@ static int quic_derive_initial_secrets(uint32_t version, sizeof(handshake_salt_draft_22), cid, cid_len, secret); } else if(is_quic_ver_less_than(version, 28) || - version == V_MVFST_27) { + version == V_MVFST_27 || + version == V_MVFST_EXP) { err = hkdf_extract(GCRY_MD_SHA256, handshake_salt_draft_23, sizeof(handshake_salt_draft_23), cid, cid_len, secret); |