aboutsummaryrefslogtreecommitdiffstats
path: root/doc/man3/SMIME_read_ASN1.pod
diff options
context:
space:
mode:
authorMatt Caswell <matt@openssl.org>2021-05-25 17:16:18 +0100
committerPauli <pauli@openssl.org>2021-06-05 17:39:10 +1000
commitdea2878fac8bde549fa0dd3b8e895703b174391b (patch)
tree8e0b77927b65d77397e6294086b2aabe5b851e7f /doc/man3/SMIME_read_ASN1.pod
parentc8a9af97c928118ae4626d793d0b73552648b7ea (diff)
downloadopenssl-dea2878fac8bde549fa0dd3b8e895703b174391b.tar.gz
Teach more of the ASN.1 code about libctx/propq
Make sure we pass libctx/propq down to all the layers so that objects that are created during parsing have the right values. Then use this new capability for PKCS7. Reviewed-by: Shane Lontis <shane.lontis@oracle.com> Reviewed-by: Paul Dale <pauli@openssl.org> (Merged from https://github.com/openssl/openssl/pull/15591)
Diffstat (limited to 'doc/man3/SMIME_read_ASN1.pod')
-rw-r--r--doc/man3/SMIME_read_ASN1.pod8
1 files changed, 6 insertions, 2 deletions
diff --git a/doc/man3/SMIME_read_ASN1.pod b/doc/man3/SMIME_read_ASN1.pod
index 56d1e67dcd..a90d9a4004 100644
--- a/doc/man3/SMIME_read_ASN1.pod
+++ b/doc/man3/SMIME_read_ASN1.pod
@@ -10,7 +10,8 @@ SMIME_read_ASN1_ex, SMIME_read_ASN1
#include <openssl/asn1.h>
ASN1_VALUE *SMIME_read_ASN1_ex(BIO *in, int flags, BIO **bcont,
- const ASN1_ITEM *it, ASN1_VALUE **x);
+ const ASN1_ITEM *it, ASN1_VALUE **x,
+ OSSL_LIB_CTX *libctx, const char *propq);
ASN1_VALUE *SMIME_read_ASN1(BIO *in, BIO **bcont, const ASN1_ITEM *it);
=head1 DESCRIPTION
@@ -25,7 +26,10 @@ to be followed by B<CR> and B<LF> characters, else only by an B<LF> character.
I<x> can be used to optionally supply
a previously created I<it> ASN1_VALUE object (such as CMS_ContentInfo or PKCS7),
it can be set to NULL. Valid values that can be used by ASN.1 structure I<it>
-are ASN1_ITEM_rptr(PKCS7) or ASN1_ITEM_rptr(CMS_ContentInfo).
+are ASN1_ITEM_rptr(PKCS7) or ASN1_ITEM_rptr(CMS_ContentInfo). Any algorithm
+fetches that occur during the operation will use the B<OSSL_LIB_CTX> supplied in
+the I<libctx> parameter, and use the property query string I<propq> See
+L<crypto(7)/ALGORITHM FETCHING> for further details about algorithm fetching.
If cleartext signing is used then the content is saved in a memory bio which is
written to I<*bcont>, otherwise I<*bcont> is set to NULL.