Moved log message for unexpected ASN.1 objects to level 2.
authorTobias Brunner <tobias@strongswan.org>
Wed, 1 Feb 2012 17:15:38 +0000 (18:15 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 1 Feb 2012 17:27:46 +0000 (18:27 +0100)
This avoids error messages if later builders can successfully decode something.

src/libstrongswan/asn1/asn1_parser.c

index f848bd3..40e11b3 100644 (file)
@@ -178,7 +178,7 @@ METHOD(asn1_parser_t, iterate, bool,
 
        if (*start_ptr != obj.type && !(this->implicit && this->line == 0))
        {
-               DBG1(DBG_ASN, "L%d - %s: ASN1 tag 0x%02x expected, but is 0x%02x",
+               DBG2(DBG_ASN, "L%d - %s: ASN1 tag 0x%02x expected, but is 0x%02x",
                                        level, obj.name, obj.type, *start_ptr);
                DBG3(DBG_ASN, "%b", start_ptr, (u_int)(blob->ptr - start_ptr));
                this->success = FALSE;