static void DetectSshSoftwareVersionFree(DetectEngineCtx *de_ctx, void *);
static int g_ssh_banner_list_id = 0;
-static int InspectSshBanner(ThreadVars *tv,
- DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
- const Signature *s, const SigMatchData *smd,
- Flow *f, uint8_t flags, void *alstate,
- void *txv, uint64_t tx_id)
+static int InspectSshBanner(DetectEngineCtx *de_ctx, DetectEngineThreadCtx *det_ctx,
+ const struct DetectEngineAppInspectionEngine_ *engine, const Signature *s, Flow *f,
+ uint8_t flags, void *alstate, void *txv, uint64_t tx_id)
{
- return DetectEngineInspectGenericList(tv, de_ctx, det_ctx, s, smd,
- f, flags, alstate, txv, tx_id);
+ return DetectEngineInspectGenericList(
+ NULL, de_ctx, det_ctx, s, engine->smd, f, flags, alstate, txv, tx_id);
}
/**
g_ssh_banner_list_id = DetectBufferTypeRegister("ssh_banner");
- DetectAppLayerInspectEngineRegister("ssh_banner",
- ALPROTO_SSH, SIG_FLAG_TOSERVER, SshStateBannerDone,
- InspectSshBanner);
- DetectAppLayerInspectEngineRegister("ssh_banner",
- ALPROTO_SSH, SIG_FLAG_TOCLIENT, SshStateBannerDone,
- InspectSshBanner);
+ DetectAppLayerInspectEngineRegister2("ssh_banner", ALPROTO_SSH, SIG_FLAG_TOSERVER,
+ SshStateBannerDone, InspectSshBanner, NULL);
+ DetectAppLayerInspectEngineRegister2("ssh_banner", ALPROTO_SSH, SIG_FLAG_TOCLIENT,
+ SshStateBannerDone, InspectSshBanner, NULL);
}
/**
UtRegisterTest("DetectSshSoftwareVersionTestDetect03",
DetectSshSoftwareVersionTestDetect03);
}
-#endif /* UNITTESTS */
\ No newline at end of file
+#endif /* UNITTESTS */