Allow ADH to be used but not present in the default cipher
[openssl.git] / crypto / pem / pem_lib.c
index 1b441d78520fae56b614c1950748ebb03a215e60..072211ba0fe30df189c7bbff65beb9f6457c1a0c 100644 (file)
@@ -217,6 +217,10 @@ static int check_pem(const char *nm, const char *name)
        if(!strcmp(nm,PEM_STRING_X509_OLD) &&
                !strcmp(name,PEM_STRING_X509_TRUSTED)) return 1;
 
+       /* Some CAs use PKCS#7 with CERTIFICATE headers */
+       if(!strcmp(nm, PEM_STRING_X509) &&
+               !strcmp(name, PEM_STRING_PKCS7)) return 1;
+
        return 0;
 }