summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2018-10-24 11:16:26 +0000
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2018-10-24 11:16:26 +0000
commit070f30fdcabadf4e3057cc8e530be45dcc607a5e (patch)
tree7308ceeee40d0986b7bb9eb7b7ab0dd7937f6e76 /tests
parent09d7b8cfca9c818f23adff1f710c1bbf42612637 (diff)
parentaba099092f95cda473bd7a3301c8af2ce3d27c2e (diff)
downloadgnutls-070f30fdcabadf4e3057cc8e530be45dcc607a5e.tar.gz
Merge branch 'tmp-fix-fips-mode' into 'master'
fips140: aligned code with documentation See merge request gnutls/gnutls!781
Diffstat (limited to 'tests')
-rw-r--r--tests/fips-override-test.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/fips-override-test.c b/tests/fips-override-test.c
index 8e0be9d462..5b92a1d485 100644
--- a/tests/fips-override-test.c
+++ b/tests/fips-override-test.c
@@ -128,6 +128,14 @@ void doit(void)
if (gnutls_fips140_mode_enabled() != GNUTLS_FIPS140_STRICT)
fail("switching to unknown mode didn't switch the lib to the expected mode\n");
+ GNUTLS_FIPS140_SET_LAX_MODE();
+ if (gnutls_fips140_mode_enabled() != GNUTLS_FIPS140_LAX)
+ fail("switching to lax mode did not succeed!\n");
+
+ GNUTLS_FIPS140_SET_STRICT_MODE();
+ if (gnutls_fips140_mode_enabled() != GNUTLS_FIPS140_STRICT)
+ fail("switching to strict mode did not succeed!\n");
+
gnutls_global_deinit();
return;
}