]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
app-layer-smtp: move old smtp-mime section in suricata.yaml into
authorTom DeCanio <decanio.tom@gmail.com>
Tue, 7 Oct 2014 22:44:06 +0000 (15:44 -0700)
committerVictor Julien <victor@inliniac.net>
Thu, 30 Oct 2014 12:33:53 +0000 (13:33 +0100)
app-layer-protocols.smtp.mine section and update code to accomodate.

src/app-layer-smtp.c
suricata.yaml.in

index 475a21e3e43ad645535654ce4dc5a88ec629775b..e0fd88d8cfffbf05361acae37a902040f58b9836 100644 (file)
@@ -218,7 +218,7 @@ typedef struct SMTPConfig {
 static SMTPConfig smtp_config = { 0, { 0, 0, 0, 0 } };
 
 /**
- * \brief Configure SMTP Mime Decoder by parsing out 'smtp-mime' section of YAML
+ * \brief Configure SMTP Mime Decoder by parsing out mime section of YAML
  * config file
  *
  * \return none
@@ -229,7 +229,7 @@ static void SMTPConfigure(void) {
     int ret = 0, val;
     intmax_t imval;
 
-    ConfNode *config = ConfGetNode("smtp-mime");
+    ConfNode *config = ConfGetNode("app-layer.protocols.smtp.mime");
     if (config != NULL) {
 
         ret = ConfGetChildValueBool(config, "decode-mime", &val);
@@ -1171,7 +1171,7 @@ static int SMTPRegisterPatternsForProtocolDetection(void)
 }
 
 /**
- * \brief Register the SMPT Protocol parser.
+ * \brief Register the SMTP Protocol parser.
  */
 void RegisterSMTPParsers(void)
 {
index 12230ff14dd7bd1a632457ebcdccc7d4532df292..29dacf4db0a005991cdb251c067f31d4feb7318c 100644 (file)
@@ -1159,6 +1159,25 @@ app-layer:
       enabled: yes
     smtp:
       enabled: yes
+      # Configure SMTP-MIME Decoder
+      mime:
+        # Decode MIME messages from SMTP transactions
+        # (may be resource intensive)
+        # This field supercedes all others because it turns the entire
+        # process on or off
+        decode-mime: yes
+
+        # Decode MIME entity bodies (ie. base64, quoted-printable, etc.)
+        decode-base64: yes
+        decode-quoted-printable: yes
+
+        # Maximum bytes per header data value stored in the data structure
+        # (default is 2000)
+        header-value-depth: 2000
+
+        # Extract URLs and save in state data structure
+        extract-urls: yes
+
     imap:
       enabled: detection-only
     msn:
@@ -1295,23 +1314,6 @@ app-layer:
            #    double-decode-path: no
            #    double-decode-query: no
 
-# Configure SMTP-MIME Decoder enhancements
-smtp-mime:
-
-  # Decode MIME messages from SMTP transactions (may be resource intensive)
-  # This field supercedes all others because it turns the entire process on or off
-  decode-mime: yes
-
-  # Decode MIME entity bodies (ie. base64, quoted-printable, etc.)
-  decode-base64: yes
-  decode-quoted-printable: yes
-
-  # Maximum bytes per header data value stored in the data structure (default is 2000)
-  header-value-depth: 2000
-
-  # Extract URLs and save in state data structure
-  extract-urls: yes
-
 # Profiling settings. Only effective if Suricata has been built with the
 # the --enable-profiling configure flag.
 #