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 464923e..2d402f7 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;