Connect QUIC decryption to UDP processing

This commit is contained in:
Vadim Vetrov
2025-01-02 20:37:34 +03:00
parent e5153e9186
commit b11a183bb3
4 changed files with 128 additions and 5 deletions

View File

@@ -43,6 +43,7 @@
#define QUIC_FRAME_CRYPTO 0x06
#define QUIC_FRAME_PADDING 0x00
#define QUIC_FRAME_PING 0x01
#define QUIC_V1 1 // RFC 9000
#define QUIC_V2 0x6b3343cf // RFC 9369
@@ -200,6 +201,14 @@ int quic_parse_initial_message(
const uint8_t **udecrypted_message, uint32_t *udecrypted_message_len
);
/**
* Like analyze_tls_data for QUIC
*/
struct tls_verdict parse_quic_decrypted(
const struct section_config_t *section,
const uint8_t *decrypted_message, uint32_t decrypted_message_len
);
// Like fail_packet for TCP
int udp_fail_packet(struct udp_failing_strategy strategy, uint8_t *payload, uint32_t *plen, uint32_t avail_buflen);