diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-12-09 11:03:25 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2013-12-09 11:08:59 +0100 |
commit | 80596228381b256eab9e4980295f32487e530454 (patch) | |
tree | 958a20e1e445e42b1e20ab57ce91606bda474662 /lib/fips.h | |
parent | 49a856323097012a465334889310de1103c966ae (diff) | |
download | gnutls-80596228381b256eab9e4980295f32487e530454.tar.gz |
FIPS140 mode is detected on run-time.
That allows a library compiled in FIPS140 mode to operate as the
full library if the system is not in FIPS mode.
Diffstat (limited to 'lib/fips.h')
-rw-r--r-- | lib/fips.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fips.h b/lib/fips.h index 6b48be4a5a..375e244300 100644 --- a/lib/fips.h +++ b/lib/fips.h @@ -53,7 +53,12 @@ inline static gnutls_lib_state_t _gnutls_get_lib_state(void) } int _gnutls_fips_perform_self_checks(void); + +#ifdef ENABLE_FIPS140 unsigned _gnutls_fips_mode_enabled(void); +#else +# define _gnutls_fips_mode_enabled() 0 +#endif # define FAIL_IF_LIB_ERROR \ if (_gnutls_get_lib_state() != LIB_STATE_OPERATIONAL && \ |