]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
accept octet strings in is_asn1() check
authorMartin Willi <martin@strongswan.org>
Thu, 3 Sep 2009 13:35:05 +0000 (15:35 +0200)
committerMartin Willi <martin@strongswan.org>
Thu, 3 Sep 2009 13:35:05 +0000 (15:35 +0200)
src/libstrongswan/asn1/asn1.c

index 464923e0d9b9372aa52f1fbc8fd357b4e3bc8bf8..2d402f72a4bb737712aa15aa2f4ee1aa3537b39a 100644 (file)
@@ -506,7 +506,7 @@ bool is_asn1(chunk_t blob)
        u_int len;
        u_char tag = *blob.ptr;
 
-       if (tag != ASN1_SEQUENCE && tag != ASN1_SET)
+       if (tag != ASN1_SEQUENCE && tag != ASN1_SET && tag != ASN1_OCTET_STRING)
        {
                DBG2("  file content is not binary ASN.1");
                return FALSE;