]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
CMP check_transactionID_or_nonce(): fix reason code on unmatched recipNonce
authorDr. David von Oheimb <David.von.Oheimb@siemens.com>
Wed, 1 Feb 2023 14:37:21 +0000 (15:37 +0100)
committerTomas Mraz <tomas@openssl.org>
Wed, 8 Feb 2023 16:05:47 +0000 (17:05 +0100)
Reviewed-by: Paul Dale <pauli@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/20190)

crypto/cmp/cmp_vfy.c

index 8a44adc3b42b064092055f9bb4c64870cd7bb97d..1552d94763f227d3b4541f2c56c13c24b4ab1e50 100644 (file)
@@ -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)" :