[openssl/openssl] 97446d: test: cmp_vfy_test: fix defined but unused

ckalina noreply at github.com
Wed Dec 14 09:23:58 UTC 2022


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: 97446da7e05bd7164f5c36b68b8bef13a63e06a5
      https://github.com/openssl/openssl/commit/97446da7e05bd7164f5c36b68b8bef13a63e06a5
  Author: Čestmír Kalina <ckalina at redhat.com>
  Date:   2022-12-14 (Wed, 14 Dec 2022)

  Changed paths:
    M test/cmp_vfy_test.c

  Log Message:
  -----------
  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 at redhat.com>

Reviewed-by: Tomas Mraz <tomas at openssl.org>
Reviewed-by: Hugo Landau <hlandau at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/19868)




More information about the openssl-commits mailing list