From: Victor Julien Date: Wed, 4 Dec 2013 09:46:02 +0000 (+0100) Subject: tls: allow matching for @ symbol in tls.subject X-Git-Tag: suricata-2.0beta2~85 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F680%2Fhead;p=thirdparty%2Fsuricata.git tls: allow matching for @ symbol in tls.subject Also in tls.issuerdn keyword. Original patch by Chris Wakelin. Fixes #1042. --- diff --git a/src/detect-tls.c b/src/detect-tls.c index 746fd58f23..929fc6558b 100644 --- a/src/detect-tls.c +++ b/src/detect-tls.c @@ -64,7 +64,7 @@ * \brief Regex for parsing "id" option, matching number or "number" */ -#define PARSE_REGEX "^\\s*(\\!*)\\s*([A-z0-9\\s\\-\\.=,\\*]+|\"[A-z0-9\\s\\-\\.=,\\*]+\")\\s*$" +#define PARSE_REGEX "^\\s*(\\!*)\\s*([A-z0-9\\s\\-\\.=,\\*@]+|\"[A-z0-9\\s\\-\\.=,\\*@]+\")\\s*$" #define PARSE_REGEX_FINGERPRINT "^\\s*(\\!*)\\s*([A-z0-9\\:\\*]+|\"[A-z0-9\\:\\* ]+\")\\s*$" static pcre *subject_parse_regex;