]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
sslv2: precise detection pattern with probing parser
authorPhilippe Antoine <contact@catenacyber.fr>
Thu, 11 Mar 2021 15:41:11 +0000 (16:41 +0100)
committerVictor Julien <victor@inliniac.net>
Mon, 29 Mar 2021 05:55:16 +0000 (07:55 +0200)
src/app-layer-ssl.c

index 725fb80377aec399ad4006a95fa5e34b27f11667..b6b282794456f3fd5dec19debf2bad03d6c2df16 100644 (file)
@@ -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;
     }