]> git.ipfire.org Git - thirdparty/openssl.git/commit
test: cmp_vfy_test: fix defined but unused
authorČestmír Kalina <ckalina@redhat.com>
Thu, 8 Dec 2022 15:49:56 +0000 (16:49 +0100)
committerHugo Landau <hlandau@openssl.org>
Wed, 14 Dec 2022 09:21:19 +0000 (09:21 +0000)
commit97446da7e05bd7164f5c36b68b8bef13a63e06a5
tree110810758883613efae7f0ebc98e9273fe549acd
parentabdf35158e4398deedcf160c28bd07c7080edf47
test: cmp_vfy_test: fix defined but unused

Building with

  ./config -DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION \
           -DPEDANTIC -Wall -Werror -pedantic

fails since the following test cases are excluded when
FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION is defined:

 - test_validate_msg_signature_srvcert_missing
 - test_validate_msg_mac_alg_protection_wrong
 - test_validate_msg_mac_alg_protection_missing

Guard the test cases by the corresponding preprocessor conditionals.

Signed-off-by: Čestmír Kalina <ckalina@redhat.com>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
Reviewed-by: Hugo Landau <hlandau@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19868)
test/cmp_vfy_test.c