diff --git a/src/detect-ssh-software-version.c b/src/detect-ssh-software-version.c index bebe2b8b98..4a603f24aa 100644 --- a/src/detect-ssh-software-version.c +++ b/src/detect-ssh-software-version.c @@ -76,14 +76,12 @@ static void DetectSshSoftwareVersionRegisterTests(void); 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); } /** @@ -107,12 +105,10 @@ void DetectSshSoftwareVersionRegister(void) 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); } /** @@ -573,4 +569,4 @@ static void DetectSshSoftwareVersionRegisterTests(void) UtRegisterTest("DetectSshSoftwareVersionTestDetect03", DetectSshSoftwareVersionTestDetect03); } -#endif /* UNITTESTS */ \ No newline at end of file +#endif /* UNITTESTS */