]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
detect/ssh: minor --list-keywords improvements
authorVictor Julien <victor@inliniac.net>
Thu, 2 May 2019 09:26:34 +0000 (11:26 +0200)
committerVictor Julien <victor@inliniac.net>
Thu, 2 May 2019 14:31:40 +0000 (16:31 +0200)
src/detect-ssh-proto-version.c
src/detect-ssh-software-version.c

index 978a63d7d8ff43aa24ca8c6d4614b8edb84596a8..4bd1335f45b703dec5d05b9900a57ab3050a2478 100644 (file)
@@ -83,6 +83,7 @@ void DetectSshVersionRegister(void)
     sigmatch_table[DETECT_AL_SSH_PROTOVERSION].Free  = DetectSshVersionFree;
     sigmatch_table[DETECT_AL_SSH_PROTOVERSION].RegisterTests = DetectSshVersionRegisterTests;
     sigmatch_table[DETECT_AL_SSH_PROTOVERSION].flags = SIGMATCH_QUOTES_OPTIONAL;
+    sigmatch_table[DETECT_AL_SSH_PROTOVERSION].alternative = DETECT_AL_SSH_PROTOCOL;
 
     DetectSetupParseRegexes(PARSE_REGEX, &parse_regex, &parse_regex_study);
 
index 431e0ee17602970652d87520479911a423e6053b..f8fbd9f3fb0cca80c47266c45f325c305cd89286 100644 (file)
@@ -97,6 +97,7 @@ void DetectSshSoftwareVersionRegister(void)
     sigmatch_table[DETECT_AL_SSH_SOFTWAREVERSION].Free  = DetectSshSoftwareVersionFree;
     sigmatch_table[DETECT_AL_SSH_SOFTWAREVERSION].RegisterTests = DetectSshSoftwareVersionRegisterTests;
     sigmatch_table[DETECT_AL_SSH_SOFTWAREVERSION].flags = SIGMATCH_QUOTES_OPTIONAL;
+    sigmatch_table[DETECT_AL_SSH_SOFTWAREVERSION].alternative = DETECT_AL_SSH_SOFTWARE;
 
     DetectSetupParseRegexes(PARSE_REGEX, &parse_regex, &parse_regex_study);