From 33170fd181834724155bafe30711024032867c6b Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 1 Nov 2010 20:48:31 +0100 Subject: [PATCH] Add secunia reference pending our reference.config support. --- src/detect-reference.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detect-reference.c b/src/detect-reference.c index 76bd2d5d9f..b24b07abb6 100644 --- a/src/detect-reference.c +++ b/src/detect-reference.c @@ -53,6 +53,7 @@ char REFERENCE_MCAFEE[] = "http://vil.nai.com/vil/dispVirus.asp?virus_k="; char REFERENCE_URL[] = "http://"; char REFERENCE_TELUS[] = "http://"; char REFERENCE_BID[] = "http://"; +char REFERENCE_SECUNIA[] = "http://"; static pcre *parse_regex; static pcre_extra *parse_regex_study; @@ -174,6 +175,8 @@ static Reference *DetectReferenceParse (char *rawstr) ref->key = REFERENCE_ARACHNIDS; } else if (strcasecmp(ref_key,"bid") == 0) { ref->key = REFERENCE_ARACHNIDS; + } else if (strcasecmp(ref_key,"secunia") == 0) { + ref->key = REFERENCE_SECUNIA; } else { SCLogError(SC_ERR_REFERENCE_UNKNOWN, "unknown reference key \"%s\". " "Supported keys are cve, bugtraq, nessus, url, mcafee, "