summaryrefslogtreecommitdiff
path: root/tests/fips-test.c
diff options
context:
space:
mode:
authorNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-30 19:06:14 +0100
committerNikos Mavrogiannopoulos <nmav@gnutls.org>2013-11-30 19:06:14 +0100
commit9eef3d6263171009523d11938e340ef90d32fd39 (patch)
tree95e6d711ce88d83bf4e552b86fbadb69bf45cec0 /tests/fips-test.c
parent16c2f4a6845cdffedc2c86234b7b4b944122d153 (diff)
downloadgnutls-9eef3d6263171009523d11938e340ef90d32fd39.tar.gz
execute the FIPS-test even when not in FIPS140 mode.
Diffstat (limited to 'tests/fips-test.c')
-rw-r--r--tests/fips-test.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/tests/fips-test.c b/tests/fips-test.c
index cf3b833422..9566e0d1a7 100644
--- a/tests/fips-test.c
+++ b/tests/fips-test.c
@@ -26,7 +26,6 @@ static uint8_t iv16[16];
void doit(void)
{
int ret;
-#ifdef ENABLE_FIPS140
unsigned int mode;
gnutls_cipher_hd_t ch;
gnutls_hmac_hd_t mh;
@@ -38,7 +37,7 @@ void doit(void)
gnutls_datum_t iv = { iv16, sizeof(iv16) };
fprintf(stderr,
- "Please note that you need to assure the library's integrity prior to running this test\n");
+ "Please note that if in FIPS140 mode, you need to assure the library's integrity prior to running this test\n");
gnutls_global_set_log_function(tls_log_func);
if (debug)
@@ -47,7 +46,6 @@ void doit(void)
mode = gnutls_fips140_mode_enabled();
if (mode == 0) {
success("We are not in FIPS140 mode\n");
- exit(77);
}
ret = global_init();
@@ -141,7 +139,4 @@ void doit(void)
gnutls_global_deinit();
return;
-#else
- exit(1); /* fail. This script shouldn't be called on this case */
-#endif
}