zapret/nfq/protocol.h

13 lines
500 B
C
Raw Normal View History

2021-03-04 14:30:38 +03:00
#pragma once
#include <stddef.h>
#include <stdint.h>
#include <stdbool.h>
bool IsHttp(const uint8_t *data, size_t len);
bool HttpExtractHost(const uint8_t *data, size_t len, char *host, size_t len_host);
bool IsTLSClientHello(const uint8_t *data, size_t len);
bool TLSFindExt(const uint8_t *data, size_t len, uint16_t type, const uint8_t **ext, size_t *len_ext);
bool TLSHelloExtractHost(const uint8_t *data, size_t len, char *host, size_t len_host);
2022-03-20 20:46:39 +03:00
bool IsQUICInitial(uint8_t *data, size_t len);