mirror of
https://github.com/Waujito/youtubeUnblock.git
synced 2026-01-30 06:00:34 +03:00
Connect QUIC decryption to UDP processing
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user