From: Dr. David von Oheimb Date: Wed, 1 Feb 2023 16:22:17 +0000 (+0100) Subject: CMP cert_response(): add missing rejection status on client rejecting new cert X-Git-Tag: openssl-3.2.0-alpha1~1285 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=e7041bfea77cc7e6bab1fe8d2745b6969a8c78aa;p=thirdparty%2Fopenssl.git 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) --- diff --git a/crypto/cmp/cmp_client.c b/crypto/cmp/cmp_client.c index 6105f97b85b..78daeb5cbf8 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);