Go to the documentation of this file.
35 #define DETECT_TLS_RANDOM_TIME_LEN 4
36 #define DETECT_TLS_RANDOM_BYTES_LEN 28
51 static int g_tls_random_time_buffer_id = 0;
52 static int g_tls_random_bytes_buffer_id = 0;
53 static int g_tls_random_buffer_id = 0;
59 "on the first 4 bytes of a TLS random buffer";
85 "sticky buffer to match specifically and only on the last 28 bytes of a TLS random "
119 "sticky buffer to match specifically and only on a TLS random buffer";
211 if (flow_flags & STREAM_TOSERVER) {
220 if (flow_flags & STREAM_TOSERVER) {
238 if (flow_flags & STREAM_TOSERVER) {
247 if (flow_flags & STREAM_TOSERVER) {
265 if (flow_flags & STREAM_TOSERVER) {
274 if (flow_flags & STREAM_TOSERVER) {
int DetectSignatureSetAppProto(Signature *s, AppProto alproto)
SSLv[2.0|3.[0|1|2|3]] state structure.
void DetectTlsRandomTimeRegister(void)
#define SIGMATCH_INFO_STICKY_BUFFER
SigTableElmt * sigmatch_table
uint8_t DetectEngineInspectBufferGeneric(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx, const DetectEngineAppInspectionEngine *engine, const Signature *s, Flow *f, uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
Do the content inspection & validation for a signature.
SSLStateConnp client_connp
SSLStateConnp server_connp
int DetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
void DetectTlsRandomRegister(void)
Registration function for keyword: tls.random.
main detection engine ctx
void DetectTlsRandomBytesRegister(void)
@ DETECT_AL_TLS_RANDOM_TIME
#define SIG_FLAG_TOCLIENT
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
InspectionBuffer * InspectionBufferGet(DetectEngineThreadCtx *det_ctx, const int list_id)
#define DETECT_TLS_RANDOM_BYTES_LEN
int DetectBufferTypeGetByName(const char *name)
@ DETECT_AL_TLS_RANDOM_BYTES
#define SIG_FLAG_TOSERVER
#define TLS_TC_RANDOM_SET
#define DETECT_TLS_RANDOM_TIME_LEN
#define TLS_TS_RANDOM_SET
int PrefilterGenericMpmRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id)
void DetectAppLayerMpmRegister(const char *name, int direction, int priority, PrefilterRegisterFunc PrefilterRegister, InspectionBufferGetDataPtr GetData, AppProto alproto, int tx_min_progress)
register an app layer keyword for mpm
uint8_t random[TLS_RANDOM_LEN]
void InspectionBufferApplyTransforms(InspectionBuffer *buffer, const DetectEngineTransforms *transforms)
void InspectionBufferSetup(DetectEngineThreadCtx *det_ctx, const int list_id, InspectionBuffer *buffer, const uint8_t *data, const uint32_t data_len)
setup the buffer with our initial data
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)