mirror of
https://github.com/openssl/openssl.git
synced 2025-01-18 13:44:20 +08:00
CMP cert_response(): add missing rejection status on client rejecting new cert
Reviewed-by: Paul Dale <pauli@openssl.org> Reviewed-by: Tomas Mraz <tomas@openssl.org> (Merged from https://github.com/openssl/openssl/pull/20190)
This commit is contained in:
parent
6f88876d4e
commit
e7041bfea7
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user