diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2018-01-21 15:07:00 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2018-02-19 08:39:36 +0100 |
commit | dc3aa56779581b661311f1c4603f3383f252b3b3 (patch) | |
tree | 6f7c19ca00afb58b1f988a5b8b7e6333c4d29575 /lib/random.c | |
parent | e89e981a2c6fab9ea5419207710b0f716df1c148 (diff) | |
download | gnutls-dc3aa56779581b661311f1c4603f3383f252b3b3.tar.gz |
fips140: added function for applications to switch the FIPS140-2 mode
That would allow FIPS140-2 compliant applications to use forbidden
algorithms by switching to a lax FIPS140-2 mode.
Resolves #352
Resolves #353
Signed-off-by: Nikos Mavrogiannopoulos <nmav@gnutls.org>
Diffstat (limited to 'lib/random.c')
-rw-r--r-- | lib/random.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/random.c b/lib/random.c index 0c05dbe187..469fc4b9a6 100644 --- a/lib/random.c +++ b/lib/random.c @@ -29,13 +29,7 @@ #include "locks.h" #include <fips.h> -#ifdef HAVE_THREADS_H -# include <threads.h> -#elif defined(__GNUC__) -# define _Thread_local __thread -#else -# error Unsupported platform -#endif +#include "gthreads.h" #if defined(FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION) extern gnutls_crypto_rnd_st _gnutls_fuzz_rnd_ops; |