Changeset View
Changeset View
Standalone View
Standalone View
doc/man3/CMS_add0_cert.pod
Context not available. | |||||
=head1 DESCRIPTION | =head1 DESCRIPTION | ||||
CMS_add0_cert() and CMS_add1_cert() add certificate I<cert> to I<cms>. | CMS_add0_cert() and CMS_add1_cert() add certificate I<cert> to I<cms>. | ||||
This is used by L<CMS_sign_ex(3)> and L<CMS_sign(3)> and may be used before | |||||
calling L<CMS_verify(3)> to help chain building in certificate validation. | |||||
I<cms> must be of type signed data or (authenticated) enveloped data. | I<cms> must be of type signed data or (authenticated) enveloped data. | ||||
For signed data, such a certificate can be used when signing or verifying | For signed data, such a certificate can be used when signing or verifying | ||||
to fill in the signer certificate or to provide an extra CA certificate | to fill in the signer certificate or to provide an extra CA certificate | ||||
Context not available. | |||||
CMS_add0_crl() and CMS_add1_crl() add CRL I<crl> to I<cms>. | CMS_add0_crl() and CMS_add1_crl() add CRL I<crl> to I<cms>. | ||||
I<cms> must be of type signed data or (authenticated) enveloped data. | I<cms> must be of type signed data or (authenticated) enveloped data. | ||||
For signed data, such a CRL may be used in certificate validation. | For signed data, such a CRL may be used in certificate validation | ||||
with L<CMS_verify(3)>. | |||||
It may be given both for inclusion when signing a CMS message | It may be given both for inclusion when signing a CMS message | ||||
and when verifying a signed CMS message. | and when verifying a signed CMS message. | ||||
Context not available. | |||||
must not be freed up after the call as opposed to CMS_add1_cert() where I<cert> | must not be freed up after the call as opposed to CMS_add1_cert() where I<cert> | ||||
must be freed up. | must be freed up. | ||||
The same certificate or CRL must not be added to the same cms structure more | The same certificate must not be added to the same cms structure more than once. | ||||
than once. | |||||
=head1 RETURN VALUES | =head1 RETURN VALUES | ||||
Context not available. | |||||
=head1 SEE ALSO | =head1 SEE ALSO | ||||
L<ERR_get_error(3)>, | L<ERR_get_error(3)>, | ||||
L<CMS_sign(3)>, | L<CMS_sign(3)>, L<CMS_sign_ex(3)>, L<CMS_verify(3)>, | ||||
L<CMS_encrypt(3)> | L<CMS_encrypt(3)> | ||||
=head1 COPYRIGHT | =head1 COPYRIGHT | ||||
Copyright 2008-2022 The OpenSSL Project Authors. All Rights Reserved. | Copyright 2008-2023 The OpenSSL Project Authors. All Rights Reserved. | ||||
Licensed under the Apache License 2.0 (the "License"). You may not use | Licensed under the Apache License 2.0 (the "License"). You may not use | ||||
this file except in compliance with the License. You can obtain a copy | this file except in compliance with the License. You can obtain a copy | ||||
Context not available. |