From e7041bfea77cc7e6bab1fe8d2745b6969a8c78aa Mon Sep 17 00:00:00 2001 From: "Dr. David von Oheimb" Date: Wed, 1 Feb 2023 17:22:17 +0100 Subject: CMP cert_response(): add missing rejection status on client rejecting new cert Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20190) --- crypto/cmp/cmp_client.c | 1 + 1 file changed, 1 insertion(+) (limited to 'crypto') diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c index 6105f97b85..78daeb5cbf 100644 --- a/crypto/cmp/cmp_client.c +++ b/crypto/cmp/cmp_client.c @@ -630,6 +630,7 @@ static int cert_response(OSSL_CMP_CTX *ctx, int sleep, int rid, ERR_raise_data(ERR_LIB_CMP, CMP_R_CERTIFICATE_NOT_ACCEPTED, "rejecting newly enrolled cert with subject: %s; %s", subj, txt); + ctx->status = OSSL_CMP_PKISTATUS_rejection; ret = 0; } OPENSSL_free(subj); -- cgit v1.2.3