|
|
@ -66,11 +66,9 @@ static void DetectSslStateRegisterTests(void);
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
static void DetectSslStateFree(DetectEngineCtx *, void *);
|
|
|
|
static void DetectSslStateFree(DetectEngineCtx *, void *);
|
|
|
|
|
|
|
|
|
|
|
|
static int InspectTlsGeneric(ThreadVars *tv,
|
|
|
|
static int InspectTlsGeneric(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
|
|
DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
|
|
const struct DetectEngineAppInspectionEngine_ *engine, const Signature *s, Flow *f,
|
|
|
|
const Signature *s, const SigMatchData *smd,
|
|
|
|
uint8_t flags, void *alstate, void *txv, uint64_t tx_id);
|
|
|
|
Flow *f, uint8_t flags, void *alstate,
|
|
|
|
|
|
|
|
void *txv, uint64_t tx_id);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static int g_tls_generic_list_id = 0;
|
|
|
|
static int g_tls_generic_list_id = 0;
|
|
|
|
|
|
|
|
|
|
|
@ -96,22 +94,18 @@ void DetectSslStateRegister(void)
|
|
|
|
DetectBufferTypeSetDescriptionByName("tls_generic",
|
|
|
|
DetectBufferTypeSetDescriptionByName("tls_generic",
|
|
|
|
"generic ssl/tls inspection");
|
|
|
|
"generic ssl/tls inspection");
|
|
|
|
|
|
|
|
|
|
|
|
DetectAppLayerInspectEngineRegister("tls_generic",
|
|
|
|
DetectAppLayerInspectEngineRegister2(
|
|
|
|
ALPROTO_TLS, SIG_FLAG_TOSERVER, 0,
|
|
|
|
"tls_generic", ALPROTO_TLS, SIG_FLAG_TOSERVER, 0, InspectTlsGeneric, NULL);
|
|
|
|
InspectTlsGeneric);
|
|
|
|
DetectAppLayerInspectEngineRegister2(
|
|
|
|
DetectAppLayerInspectEngineRegister("tls_generic",
|
|
|
|
"tls_generic", ALPROTO_TLS, SIG_FLAG_TOCLIENT, 0, InspectTlsGeneric, NULL);
|
|
|
|
ALPROTO_TLS, SIG_FLAG_TOCLIENT, 0,
|
|
|
|
|
|
|
|
InspectTlsGeneric);
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
static int InspectTlsGeneric(ThreadVars *tv,
|
|
|
|
static int InspectTlsGeneric(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
|
|
DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
|
|
|
|
const struct DetectEngineAppInspectionEngine_ *engine, const Signature *s, Flow *f,
|
|
|
|
const Signature *s, const SigMatchData *smd,
|
|
|
|
uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
|
|
|
|
Flow *f, uint8_t flags, void *alstate,
|
|
|
|
|
|
|
|
void *txv, uint64_t tx_id)
|
|
|
|
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd,
|
|
|
|
return DetectEngineInspectGenericList(
|
|
|
|
f, flags, alstate, txv, tx_id);
|
|
|
|
NULL, de_ctx, det_ctx, s, engine->smd, f, flags, alstate, txv, tx_id);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
/**
|
|
|
|