fips: Only test check_binary_integrity when fips_mode is enabled.
authorNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Feb 2019 00:02:59 +0000 (09:02 +0900)
committerNIIBE Yutaka <gniibe@fsij.org>
Mon, 25 Feb 2019 00:02:59 +0000 (09:02 +0900)
commitad133fc79757236359252e92244fe16e9adb45a3
treebb1d110597bc9a1e6292b1664b472bedc8bef1a3
parentd455068988e5779b0200c51415ddab6b51e12dc4
fips: Only test check_binary_integrity when fips_mode is enabled.

* src/fips.c (_gcry_fips_run_selftests): Check the status of fips_mode
before calling check_binary_integrity.

--

GnuPG-bug-id: 4274
Reported-by: Pedro Monreal
Signed-off-by: NIIBE Yutaka <gniibe@fsij.org>
src/fips.c