diff options
author | Shane Lontis <shane.lontis@oracle.com> | 2020-07-25 18:04:55 +1000 |
---|---|---|
committer | Shane Lontis <shane.lontis@oracle.com> | 2020-08-09 17:34:52 +1000 |
commit | c1669f41eab0e2d9a8c2498718d06b4cd48a9890 (patch) | |
tree | 00e024f0935dfa0c93e2f833e69b14bb77a819e4 /doc/man3/SMIME_read_CMS.pod | |
parent | 82a7b2fb001e2ff50389d0894c276880b3bad336 (diff) | |
download | openssl-new-c1669f41eab0e2d9a8c2498718d06b4cd48a9890.tar.gz |
Add libctx support to CMS.
-Public CMS methods that create a CMS_ContentInfo object now have variants that also add a libctx and propq.
This includes CMS_ContentInfo_new_with_libctx(), CMS_sign_with_libctx(), CMS_data_create_with_libctx(),
CMS_digest_create_with_libctx(), CMS_EncryptedData_encrypt_with_libctx(), CMS_EnvelopedData_create_with_libctx().
-Added CMS_ReceiptRequest_create0_with_libctx().
-Added SMIME_read_CMS_ex() so that a new CMS_ContentInfo object (created using CMS_ContentInfo_new_with_libctx()) can
be passed to the read.
-d2i_CMS_bio() has been modified so that after it loads the CMS_ContentInfo() it then resolves any subobjects that require
the libctx/propq (such as objects containing X509 certificates).
Reviewed-by: Matt Caswell <matt@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/11884)
Diffstat (limited to 'doc/man3/SMIME_read_CMS.pod')
-rw-r--r-- | doc/man3/SMIME_read_CMS.pod | 23 |
1 files changed, 18 insertions, 5 deletions
diff --git a/doc/man3/SMIME_read_CMS.pod b/doc/man3/SMIME_read_CMS.pod index 136bfd8f0a..c7ca845eee 100644 --- a/doc/man3/SMIME_read_CMS.pod +++ b/doc/man3/SMIME_read_CMS.pod @@ -2,12 +2,14 @@ =head1 NAME -SMIME_read_CMS - parse S/MIME message +SMIME_read_CMS_ex, SMIME_read_CMS - parse S/MIME message =head1 SYNOPSIS #include <openssl/cms.h> + CMS_ContentInfo *SMIME_read_CMS_ex(BIO *bio, BIO **bcont, + CMS_ContentInfo **cms); CMS_ContentInfo *SMIME_read_CMS(BIO *in, BIO **bcont); =head1 DESCRIPTION @@ -22,6 +24,11 @@ written to B<*bcont>, otherwise B<*bcont> is set to NULL. The parsed CMS_ContentInfo structure is returned or NULL if an error occurred. +SMIME_read_CMS_ex() is similar to SMIME_read_CMS() but can optionally supply a +previously created I<cms> CMS_ContentInfo object. If I<cms> is NULL then it is +identical to SMIME_read_CMS(). +To create a I<cms> object use L<CMS_ContentInfo_new_with_libctx(3)>. + =head1 NOTES If B<*bcont> is not NULL then the message is clear text signed. B<*bcont> can @@ -53,16 +60,22 @@ should be available. =head1 RETURN VALUES -SMIME_read_CMS() returns a valid B<CMS_ContentInfo> structure or B<NULL> -if an error occurred. The error can be obtained from ERR_get_error(3). +SMIME_read_CMS_ex() and SMIME_read_CMS() return a valid B<CMS_ContentInfo> +structure or B<NULL> if an error occurred. The error can be obtained from +ERR_get_error(3). =head1 SEE ALSO L<ERR_get_error(3)>, -L<SMIME_read_CMS(3)>, L<CMS_sign(3)>, -L<CMS_verify(3)>, L<CMS_encrypt(3)>, +L<CMS_sign(3)>, +L<CMS_verify(3)>, +L<CMS_encrypt(3)>, L<CMS_decrypt(3)> +=head1 HISTORY + +The function SMIME_read_CMS_ex() was added in OpenSSL 3.0. + =head1 COPYRIGHT Copyright 2008-2020 The OpenSSL Project Authors. All Rights Reserved. |