From 13a2c994a655cbabc53ccaae76c83d6ece01e183 Mon Sep 17 00:00:00 2001 From: Adam Langley Date: Fri, 27 Feb 2015 13:04:41 -0800 Subject: Add support for reading PKCS#7 data from PEM files. (This is a backport of upstream BoringSSL's 4e581b5378d7ef435c9abe39ad5c2a334bd7b6e9.) Change-Id: If799791f28cd37ce810c0065939cf1942771c7f7 --- src/include/openssl/x509.h | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/include') diff --git a/src/include/openssl/x509.h b/src/include/openssl/x509.h index 987c353..2a79887 100644 --- a/src/include/openssl/x509.h +++ b/src/include/openssl/x509.h @@ -1178,6 +1178,17 @@ OPENSSL_EXPORT int PKCS7_get_CRLs(STACK_OF(X509_CRL) *out_crls, CBS *cbs); * |crls| to |out|. It returns one on success and zero on error. */ OPENSSL_EXPORT int PKCS7_bundle_CRLs(CBB *out, const STACK_OF(X509_CRL) *crls); +/* PKCS7_get_PEM_certificates reads a PEM-encoded, PKCS#7, SignedData structure + * from |pem_bio| and appends the included certificates to |out_certs|. It + * returns one on success and zero on error. */ +OPENSSL_EXPORT int PKCS7_get_PEM_certificates(STACK_OF(X509) *out_certs, + BIO *pem_bio); + +/* PKCS7_get_PEM_CRLs reads a PEM-encoded, PKCS#7, SignedData structure from + * |pem_bio| and appends the included CRLs to |out_crls|. It returns one on + * success and zero on error. */ +OPENSSL_EXPORT int PKCS7_get_PEM_CRLs(STACK_OF(X509_CRL) *out_crls, + BIO *pem_bio); /* EVP_PK values indicate the algorithm of the public key in a certificate. */ -- cgit v1.1