From 4b0c27d44514abb4ad2bb1153db96f106910fc04 Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Fri, 3 Feb 2023 10:31:19 +0100 Subject: CMP add: fix -reqin option, which requires adding OSSL_CMP_MSG_update_recipNonce() Reviewed-by: Tomas Mraz Reviewed-by: Paul Dale Reviewed-by: David von Oheimb (Merged from https://github.com/openssl/openssl/pull/20204) --- doc/internal/man3/ossl_cmp_msg_protect.pod | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'doc/internal') diff --git a/doc/internal/man3/ossl_cmp_msg_protect.pod b/doc/internal/man3/ossl_cmp_msg_protect.pod index ae77712807..04da21fd9f 100644 --- a/doc/internal/man3/ossl_cmp_msg_protect.pod +++ b/doc/internal/man3/ossl_cmp_msg_protect.pod @@ -25,7 +25,7 @@ using the credentials, library context, and property criteria in the I. ossl_cmp_msg_protect() (re-)protects the given message I using an algorithm depending on the available context information given in the I. If there is a secretValue it selects PBMAC, else if there is a protection cert -it selects Signature and uses L. +it selects Signature and uses ossl_cmp_msg_add_extraCerts (see below). It also sets the protectionAlg field in the message header accordingly. ossl_cmp_msg_add_extraCerts() adds elements to the extraCerts field in I. @@ -40,6 +40,10 @@ of the chain, i.e, the trust anchor (unless it is part of extraCertsOut). CMP is defined in RFC 4210 (and CRMF in RFC 4211). +The I parameter of ossl_cmp_msg_add_extraCerts() +and thus also of ossl_cmp_msg_protect() cannot be made I +because Ichain> may get adapted to cache the chain of the CMP signer cert. + =head1 RETURN VALUES ossl_cmp_calc_protection() returns the protection on success, else NULL. -- cgit v1.2.3