From b5d53894380dc0cd1e05bb681e21d310828185c4 Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Thu, 2 May 2019 11:26:34 +0200 Subject: [PATCH] detect/ssh: minor --list-keywords improvements --- src/detect-ssh-proto-version.c | 1 + src/detect-ssh-software-version.c | 1 + 2 files changed, 2 insertions(+) diff --git a/src/detect-ssh-proto-version.c b/src/detect-ssh-proto-version.c index 978a63d7d8..4bd1335f45 100644 --- a/src/detect-ssh-proto-version.c +++ b/src/detect-ssh-proto-version.c @@ -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); diff --git a/src/detect-ssh-software-version.c b/src/detect-ssh-software-version.c index 431e0ee176..f8fbd9f3fb 100644 --- a/src/detect-ssh-software-version.c +++ b/src/detect-ssh-software-version.c @@ -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); -- 2.47.2