mirror of
https://github.com/openssl/openssl.git
synced 2024-12-09 05:51:54 +08:00
CMP check_transactionID_or_nonce(): fix reason code on unmatched recipNonce
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
7f7dafe98b
commit
ed9c6f363e
@ -651,7 +651,7 @@ static int check_transactionID_or_nonce(ASN1_OCTET_STRING *expected,
|
||||
|
||||
expected_str = i2s_ASN1_OCTET_STRING(NULL, expected);
|
||||
actual_str = actual == NULL ? NULL: i2s_ASN1_OCTET_STRING(NULL, actual);
|
||||
ERR_raise_data(ERR_LIB_CMP, CMP_R_TRANSACTIONID_UNMATCHED,
|
||||
ERR_raise_data(ERR_LIB_CMP, reason,
|
||||
"expected = %s, actual = %s",
|
||||
expected_str == NULL ? "?" : expected_str,
|
||||
actual == NULL ? "(none)" :
|
||||
|
Loading…
Reference in New Issue
Block a user