diff options
author | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-05-27 21:11:41 +0000 |
---|---|---|
committer | Dmitry Baryshkov <dbaryshkov@gmail.com> | 2020-05-27 21:11:41 +0000 |
commit | dca9dcdecd448b75ccae83b99f6a18b607ff694f (patch) | |
tree | 0abc8c2e328740f26821d14d5f1b2df314889df1 /lib/random.c | |
parent | 6753e6f093708ba89071124ab0cb4da83c948634 (diff) | |
parent | a53007d1986bcec8b042cabdcecef7e95de68b93 (diff) | |
download | gnutls-dca9dcdecd448b75ccae83b99f6a18b607ff694f.tar.gz |
Merge branch 'tmp-fips-redefinition' into 'master'
fips: make FIPS140-2 mode enablement logic simpler
See merge request gnutls/gnutls!1253
Diffstat (limited to 'lib/random.c')
-rw-r--r-- | lib/random.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/random.c b/lib/random.c index 6462738416..605fc8d51a 100644 --- a/lib/random.c +++ b/lib/random.c @@ -105,9 +105,9 @@ int _gnutls_rnd_preinit(void) #elif defined(ENABLE_FIPS140) /* The FIPS140 random generator is only enabled when we are compiled - * with FIPS support, _and_ the system requires FIPS140. + * with FIPS support, _and_ the system is in FIPS installed state. */ - if (_gnutls_fips_mode_enabled() == 1) { + if (_gnutls_fips_mode_enabled() != 0) { ret = gnutls_crypto_rnd_register(100, &_gnutls_fips_rnd_ops); if (ret < 0) return ret; |