diff options
Diffstat (limited to 'tests/pkcs12_encode.c')
-rw-r--r-- | tests/pkcs12_encode.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/pkcs12_encode.c b/tests/pkcs12_encode.c index 46c5092e49..3b0e84ef13 100644 --- a/tests/pkcs12_encode.c +++ b/tests/pkcs12_encode.c @@ -128,11 +128,12 @@ void doit(void) } /* Generate and add PKCS#12 cert bags. */ -#ifndef ENABLE_FIPS140 - tests = 2; /* include RC2 */ -#else - tests = 1; -#endif + if (!gnutls_fips140_mode_enabled()) { + tests = 2; /* include RC2 */ + } else { + tests = 1; + } + for (i = 0; i < tests; i++) { ret = gnutls_pkcs12_bag_init(&bag); if (ret < 0) { |