From: Philippe Antoine Date: Thu, 11 Mar 2021 15:41:11 +0000 (+0100) Subject: sslv2: precise detection pattern with probing parser X-Git-Tag: suricata-7.0.0-beta1~1718 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2997be6707de84843d0f4743cce4d285bdc945d6;p=thirdparty%2Fsuricata.git sslv2: precise detection pattern with probing parser --- diff --git a/src/app-layer-ssl.c b/src/app-layer-ssl.c index 725fb80377..b6b2827944 100644 --- a/src/app-layer-ssl.c +++ b/src/app-layer-ssl.c @@ -2764,9 +2764,8 @@ static int SSLStateGetEventInfoById(int event_id, const char **event_name, static int SSLRegisterPatternsForProtocolDetection(void) { - if (AppLayerProtoDetectPMRegisterPatternCS(IPPROTO_TCP, ALPROTO_TLS, - "|01 00 02|", 5, 2, STREAM_TOSERVER) < 0) - { + if (AppLayerProtoDetectPMRegisterPatternCSwPP(IPPROTO_TCP, ALPROTO_TLS, "|01 00 02|", 5, 2, + STREAM_TOSERVER, SSLProbingParser, 0, 3) < 0) { return -1; }