From: Pierre Chifflier Date: Mon, 27 Feb 2012 16:23:24 +0000 (+0100) Subject: TLS: replace SigMatchAppendAppLayer with SigMatchAppendSMToList X-Git-Tag: suricata-1.3beta1~82 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71fa4a528543612231d73baef6025436aa38105c;p=thirdparty%2Fsuricata.git TLS: replace SigMatchAppendAppLayer with SigMatchAppendSMToList --- diff --git a/src/detect-tls.c b/src/detect-tls.c index a69e7a6cc4..7d41970f43 100644 --- a/src/detect-tls.c +++ b/src/detect-tls.c @@ -293,7 +293,7 @@ static int DetectTlsSubjectSetup (DetectEngineCtx *de_ctx, Signature *s, char *s sm->type = DETECT_AL_TLS_SUBJECT; sm->ctx = (void *)tls; - SigMatchAppendAppLayer(s, sm); + SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_AMATCH); if (s->alproto != ALPROTO_UNKNOWN && s->alproto != ALPROTO_TLS) { SCLogError(SC_ERR_CONFLICTING_RULE_KEYWORDS, "rule contains conflicting keywords."); @@ -486,7 +486,7 @@ static int DetectTlsIssuerDNSetup (DetectEngineCtx *de_ctx, Signature *s, char * sm->type = DETECT_AL_TLS_ISSUERDN; sm->ctx = (void *)tls; - SigMatchAppendAppLayer(s, sm); + SigMatchAppendSMToList(s, sm, DETECT_SM_LIST_AMATCH); if (s->alproto != ALPROTO_UNKNOWN && s->alproto != ALPROTO_TLS) { SCLogError(SC_ERR_CONFLICTING_RULE_KEYWORDS, "rule contains conflicting keywords.");