diff options
author | Kurt Roeckx <kurt@roeckx.be> | 2014-04-19 19:46:17 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2014-04-27 18:40:24 +0200 |
commit | 90a54379d1ae89fb8fc8424c76147d0170084506 (patch) | |
tree | 5fe20a0ef4952bbb0f7b7dc874b13d7f19dcb18e /lib/fips.c | |
parent | 1c92d7ee18917627997a5ccca92d36cbdc068496 (diff) | |
download | gnutls-90a54379d1ae89fb8fc8424c76147d0170084506.tar.gz |
Add _gnutls_fips_mode_enabled() return values.
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/fips.c')
-rw-r--r-- | lib/fips.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/fips.c b/lib/fips.c index 1812610197..8cd4b94a2e 100644 --- a/lib/fips.c +++ b/lib/fips.c @@ -36,6 +36,11 @@ unsigned int _gnutls_lib_mode = LIB_STATE_POWERON; #define FIPS_KERNEL_FILE "/proc/sys/crypto/fips_enabled" #define FIPS_SYSTEM_FILE "/etc/system-fips" +/* Returns: + * 0 - FIPS mode disabled + * 1 - FIPS mode enabled and enforced + * 2 - FIPS in testing mode + */ unsigned _gnutls_fips_mode_enabled(void) { unsigned f1p = 0, f2p; |