Changeset View
Changeset View
Standalone View
Standalone View
doc/internal/man3/ossl_cmp_msg_protect.pod
Context not available. | |||||
ossl_cmp_msg_protect() (re-)protects the given message I<msg> using an algorithm | ossl_cmp_msg_protect() (re-)protects the given message I<msg> using an algorithm | ||||
depending on the available context information given in the I<ctx>. | depending on the available context information given in the I<ctx>. | ||||
If there is a secretValue it selects PBMAC, else if there is a protection cert | If there is a secretValue it selects PBMAC, else if there is a protection cert | ||||
it selects Signature and uses L<ossl_cmp_msg_add_extraCerts(3)>. | it selects Signature and uses ossl_cmp_msg_add_extraCerts (see below). | ||||
It also sets the protectionAlg field in the message header accordingly. | It also sets the protectionAlg field in the message header accordingly. | ||||
ossl_cmp_msg_add_extraCerts() adds elements to the extraCerts field in I<msg>. | ossl_cmp_msg_add_extraCerts() adds elements to the extraCerts field in I<msg>. | ||||
Context not available. | |||||
CMP is defined in RFC 4210 (and CRMF in RFC 4211). | CMP is defined in RFC 4210 (and CRMF in RFC 4211). | ||||
The I<ctx> parameter of ossl_cmp_msg_add_extraCerts() | |||||
and thus also of ossl_cmp_msg_protect() cannot be made I<const> | |||||
because I<ctx->chain> may get adapted to cache the chain of the CMP signer cert. | |||||
=head1 RETURN VALUES | =head1 RETURN VALUES | ||||
ossl_cmp_calc_protection() returns the protection on success, else NULL. | ossl_cmp_calc_protection() returns the protection on success, else NULL. | ||||
Context not available. | |||||
=head1 COPYRIGHT | =head1 COPYRIGHT | ||||
Copyright 2007-2021 The OpenSSL Project Authors. All Rights Reserved. | Copyright 2007-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. |