]> git.ipfire.org Git - thirdparty/gnutls.git/commit
_gnutls_fips_mode_enabled: treat selftest failure as FIPS disabled
authorDaiki Ueno <ueno@gnu.org>
Thu, 4 Jun 2020 14:42:07 +0000 (16:42 +0200)
committerDaiki Ueno <ueno@gnu.org>
Wed, 12 Aug 2020 07:31:34 +0000 (09:31 +0200)
commiteb2bf4a2db2b3caf36fda830ea08e932c00eca86
treeb4c76ce3fc132f97f3f58454b34cf88a51224457
parent606b77a2422c7e4124d80904bd191184323205fc
_gnutls_fips_mode_enabled: treat selftest failure as FIPS disabled

Previously gnutls_fips140_mode_enabled() returned true, even after
selftests have failed and the library state has switched to error.
While later calls to crypto operations fails, it would be more
convenient to have a function to detect that state.

Signed-off-by: Daiki Ueno <ueno@gnu.org>
lib/fips.c