72 Flow *f,
const uint8_t flow_flags,
73 void *txv,
const int list_id);
74static int g_tls_ja3_str_buffer_id = 0;
131 SCLogError(
"rule contains conflicting protocols.");
151 const uint8_t flow_flags,
void *txv,
const int list_id)
157 if (ssl_state->client_connp.ja3_str == NULL ||
158 ssl_state->client_connp.ja3_str->data == NULL) {
162 const uint32_t data_len = (uint32_t)strlen(ssl_state->client_connp.ja3_str->data);
163 const uint8_t *data = (uint8_t *)ssl_state->client_connp.ja3_str->data;
166 det_ctx, list_id, buffer, data, data_len, transforms);
void SSLEnableJA3(void)
if not explicitly disabled in config, enable ja3 support
@ TLS_STATE_CLIENT_HELLO_DONE
int SCDetectBufferSetActiveList(DetectEngineCtx *de_ctx, Signature *s, const int list)
void InspectionBufferSetupAndApplyTransforms(DetectEngineThreadCtx *det_ctx, const int list_id, InspectionBuffer *buffer, const uint8_t *data, const uint32_t data_len, const DetectEngineTransforms *transforms)
setup the buffer with our initial data
InspectionBuffer * InspectionBufferGet(DetectEngineThreadCtx *det_ctx, const 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
int PrefilterGenericMpmRegister(DetectEngineCtx *de_ctx, SigGroupHead *sgh, MpmCtx *mpm_ctx, const DetectBufferMpmRegistry *mpm_reg, int list_id)
void DetectBufferTypeSetDescriptionByName(const char *name, const char *desc)
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.
void DetectAppLayerInspectEngineRegister(const char *name, AppProto alproto, uint32_t dir, int progress, InspectEngineFuncPtr Callback, InspectionBufferGetDataPtr GetData)
Registers an app inspection engine.
int DetectBufferTypeGetByName(const char *name)
int DetectSignatureSetMultiAppProto(Signature *s, const AppProto *alprotos)
this function is used to set multiple possible app-layer protos
bool SigMatchSilentErrorEnabled(const DetectEngineCtx *de_ctx, const enum DetectKeywordId id)
SigTableElmt * sigmatch_table
void DetectTlsJa3StringRegister(void)
Registration function for keyword: ja3.string.
#define SIGMATCH_INFO_STICKY_BUFFER
#define SIG_FLAG_TOSERVER
main detection engine ctx
SSLv[2.0|3.[0|1|2|3]] state structure.
int(* Setup)(DetectEngineCtx *, Signature *, const char *)
int RunmodeIsUnittests(void)
#define SCLogError(...)
Macro used to log ERROR messages.
int Ja3IsDisabled(const char *type)