summaryrefslogtreecommitdiff
path: root/lib/gnutls_global.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@redhat.com>2013-12-09 11:03:25 +0100
committerNikos Mavrogiannopoulos <nmav@redhat.com>2013-12-09 11:08:59 +0100
commit80596228381b256eab9e4980295f32487e530454 (patch)
tree958a20e1e445e42b1e20ab57ce91606bda474662 /lib/gnutls_global.c
parent49a856323097012a465334889310de1103c966ae (diff)
downloadgnutls-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/gnutls_global.c')
-rw-r--r--lib/gnutls_global.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/gnutls_global.c b/lib/gnutls_global.c
index f23967f92d..b99ad28e0b 100644
--- a/lib/gnutls_global.c
+++ b/lib/gnutls_global.c
@@ -338,6 +338,8 @@ static int gnutls_global_init2(unsigned int flags)
* res == not in fips140 mode
*/
if (res != 0) {
+ _gnutls_priority_update_fips();
+
ret = _gnutls_fips_perform_self_checks();
if (res != 2) {
if (ret < 0) {