From 7c701c590d4b368fedf5dad222b4f3b8103b2381 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 23 Sep 2020 10:17:58 +0200 Subject: Make SMIME_read_CMS_ex() and SMIME_read_ASN1_ex() support binary input Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/12959) --- include/openssl/asn1.h.in | 2 +- include/openssl/cms.h.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'include') diff --git a/include/openssl/asn1.h.in b/include/openssl/asn1.h.in index 0ee82e7d58..36abcff28c 100644 --- a/include/openssl/asn1.h.in +++ b/include/openssl/asn1.h.in @@ -919,7 +919,7 @@ int SMIME_write_ASN1_ex(BIO *bio, ASN1_VALUE *val, BIO *data, int flags, STACK_OF(X509_ALGOR) *mdalgs, const ASN1_ITEM *it, OSSL_LIB_CTX *libctx, const char *propq); ASN1_VALUE *SMIME_read_ASN1(BIO *bio, BIO **bcont, const ASN1_ITEM *it); -ASN1_VALUE *SMIME_read_ASN1_ex(BIO *bio, BIO **bcont, const ASN1_ITEM *it, +ASN1_VALUE *SMIME_read_ASN1_ex(BIO *bio, int flags, BIO **bcont, const ASN1_ITEM *it, ASN1_VALUE **x); int SMIME_crlf_copy(BIO *in, BIO *out, int flags); int SMIME_text(BIO *in, BIO *out); diff --git a/include/openssl/cms.h.in b/include/openssl/cms.h.in index 451191b796..da20ddf2f4 100644 --- a/include/openssl/cms.h.in +++ b/include/openssl/cms.h.in @@ -114,7 +114,7 @@ int i2d_CMS_bio_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags); int PEM_write_bio_CMS_stream(BIO *out, CMS_ContentInfo *cms, BIO *in, int flags); CMS_ContentInfo *SMIME_read_CMS(BIO *bio, BIO **bcont); -CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, BIO **bcont, CMS_ContentInfo **ci); +CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, int flags, BIO **bcont, CMS_ContentInfo **ci); int SMIME_write_CMS(BIO *bio, CMS_ContentInfo *cms, BIO *data, int flags); int CMS_final(CMS_ContentInfo *cms, BIO *data, BIO *dcont, -- cgit v1.2.3