Update from HEAD.
authorDr. Stephen Henson <steve@openssl.org>
Tue, 11 Nov 2008 12:42:32 +0000 (12:42 +0000)
committerDr. Stephen Henson <steve@openssl.org>
Tue, 11 Nov 2008 12:42:32 +0000 (12:42 +0000)
crypto/pem/pem.h
crypto/pem/pem_lib.c

index 670afa670bafee2f1d8bf4bb891fa5ea1d4b253e..6f8e01544bbe36459674e364dd2d5a1031d1cce5 100644 (file)
@@ -125,6 +125,7 @@ extern "C" {
 #define PEM_STRING_DSA         "DSA PRIVATE KEY"
 #define PEM_STRING_DSA_PUBLIC  "DSA PUBLIC KEY"
 #define PEM_STRING_PKCS7       "PKCS7"
+#define PEM_STRING_PKCS7_SIGNED        "PKCS #7 SIGNED DATA"
 #define PEM_STRING_PKCS8       "ENCRYPTED PRIVATE KEY"
 #define PEM_STRING_PKCS8INF    "PRIVATE KEY"
 #define PEM_STRING_DHPARAMS    "DH PARAMETERS"
index 9bae4c8850c7ef0a5dce5745c533e2aaecc24c72..cbafefe416e1d9a8e255831e352affab77f28303 100644 (file)
@@ -216,6 +216,9 @@ static int check_pem(const char *nm, const char *name)
        if(!strcmp(nm, PEM_STRING_X509) &&
                !strcmp(name, PEM_STRING_PKCS7)) return 1;
 
+       if(!strcmp(nm, PEM_STRING_PKCS7_SIGNED) &&
+               !strcmp(name, PEM_STRING_PKCS7)) return 1;
+
        return 0;
 }