Add support for bruteforce mode of parsing SNI from Client Hello.

This commit is contained in:
Vadim Vetrov
2024-08-15 02:31:48 +03:00
parent 7f340fb033
commit 044801efb9
5 changed files with 109 additions and 3 deletions

14
types.h
View File

@@ -44,4 +44,18 @@ typedef __i64 int64_t;
#include <netinet/udp.h> // IWYU pragma: export
#endif
#define max(a,b)__extension__\
({ \
__typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a > _b ? _a : _b; \
})
#define min(a,b)__extension__\
({ \
__typeof__ (a) _a = (a); \
__typeof__ (b) _b = (b); \
_a < _b ? _a : _b; \
})
#endif /* TYPES_H */