From: Dr. David von Oheimb Date: Wed, 1 Feb 2023 14:37:21 +0000 (+0100) Subject: CMP check_transactionID_or_nonce(): fix reason code on unmatched recipNonce X-Git-Tag: openssl-3.2.0-alpha1~1290 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ed9c6f363ef2e9e5a7de6a1639e0518f86419c2d;p=thirdparty%2Fopenssl.git CMP check_transactionID_or_nonce(): fix reason code on unmatched recipNonce Reviewed-by: Paul Dale Reviewed-by: Tomas Mraz (Merged from https://github.com/openssl/openssl/pull/20190) --- diff --git a/crypto/cmp/cmp_vfy.c b/crypto/cmp/cmp_vfy.c index 8a44adc3b42..1552d94763f 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)" :