diff options
author | beck <> | 2015-02-11 04:05:14 +0000 |
---|---|---|
committer | beck <> | 2015-02-11 04:05:14 +0000 |
commit | 74b6aedb7d6d115e1fa81e96806190a780392341 (patch) | |
tree | aa9f1278214f1d7d996d30cf1959f3878cb48be1 /src/lib/libcrypto/pem | |
parent | 16aad183ce9bacab429bd62937373a0da02849ec (diff) | |
download | openbsd-74b6aedb7d6d115e1fa81e96806190a780392341.tar.gz openbsd-74b6aedb7d6d115e1fa81e96806190a780392341.tar.bz2 openbsd-74b6aedb7d6d115e1fa81e96806190a780392341.zip |
Guenther has plans for OPENSSL_NO_CMS, so revert this for the moment.
Diffstat (limited to 'src/lib/libcrypto/pem')
-rw-r--r-- | src/lib/libcrypto/pem/pem_lib.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/src/lib/libcrypto/pem/pem_lib.c b/src/lib/libcrypto/pem/pem_lib.c index 9107e9c225..48768a4467 100644 --- a/src/lib/libcrypto/pem/pem_lib.c +++ b/src/lib/libcrypto/pem/pem_lib.c | |||
@@ -1,4 +1,4 @@ | |||
1 | /* $OpenBSD: pem_lib.c,v 1.38 2015/02/11 03:55:42 beck Exp $ */ | 1 | /* $OpenBSD: pem_lib.c,v 1.39 2015/02/11 04:05:14 beck Exp $ */ |
2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) | 2 | /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) |
3 | * All rights reserved. | 3 | * All rights reserved. |
4 | * | 4 | * |
@@ -264,6 +264,15 @@ check_pem(const char *nm, const char *name) | |||
264 | !strcmp(name, PEM_STRING_PKCS7)) | 264 | !strcmp(name, PEM_STRING_PKCS7)) |
265 | return 1; | 265 | return 1; |
266 | 266 | ||
267 | #ifndef OPENSSL_NO_CMS | ||
268 | if (!strcmp(nm, PEM_STRING_X509) && | ||
269 | !strcmp(name, PEM_STRING_CMS)) | ||
270 | return 1; | ||
271 | /* Allow CMS to be read from PKCS#7 headers */ | ||
272 | if (!strcmp(nm, PEM_STRING_PKCS7) && | ||
273 | !strcmp(name, PEM_STRING_CMS)) | ||
274 | return 1; | ||
275 | #endif | ||
267 | 276 | ||
268 | return 0; | 277 | return 0; |
269 | } | 278 | } |