diff options
author | Dr. David von Oheimb <David.von.Oheimb@siemens.com> | 2023-02-01 15:37:21 +0100 |
---|---|---|
committer | Tomas Mraz <tomas@openssl.org> | 2023-02-08 17:05:47 +0100 |
commit | ed9c6f363ef2e9e5a7de6a1639e0518f86419c2d (patch) | |
tree | 533749dcb77bd3e75af72025431f121d47f244f1 /crypto | |
parent | 7f7dafe98b10ef54593df175b901654a0f9890a7 (diff) | |
download | openssl-new-ed9c6f363ef2e9e5a7de6a1639e0518f86419c2d.tar.gz |
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)
Diffstat (limited to 'crypto')
-rw-r--r-- | crypto/cmp/cmp_vfy.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/cmp/cmp_vfy.c b/crypto/cmp/cmp_vfy.c index 8a44adc3b4..1552d94763 100644 --- a/crypto/cmp/cmp_vfy.c +++ b/crypto/cmp/cmp_vfy.c @@ -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)" : |