diff options
author | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-30 19:06:14 +0100 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@gnutls.org> | 2013-11-30 19:06:14 +0100 |
commit | 9eef3d6263171009523d11938e340ef90d32fd39 (patch) | |
tree | 95e6d711ce88d83bf4e552b86fbadb69bf45cec0 /tests/fips-test.c | |
parent | 16c2f4a6845cdffedc2c86234b7b4b944122d153 (diff) | |
download | gnutls-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.c | 7 |
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 } |