diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-03-25 16:36:46 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-03-25 16:36:46 +0000 |
commit | cd22dfbf0109ae42f650c0d0b1d0e956fe9a1574 (patch) | |
tree | a3f3ca931c8dfd6b86d5e5666a6c35575817ca1e /fips/cmac | |
parent | d4178c8fb1736354d16a6e1b82c5e02433973374 (diff) | |
download | openssl-cd22dfbf0109ae42f650c0d0b1d0e956fe9a1574.tar.gz |
Have all algorithm test programs call fips_algtest_init() at startup:
this will perform all standalone operations such as setting error
callbacks, entering FIPS mode etc.
Diffstat (limited to 'fips/cmac')
-rw-r--r-- | fips/cmac/fips_cmactest.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/fips/cmac/fips_cmactest.c b/fips/cmac/fips_cmactest.c index cc07265370..c2da660c67 100644 --- a/fips/cmac/fips_cmactest.c +++ b/fips/cmac/fips_cmactest.c @@ -102,9 +102,7 @@ int main(int argc, char **argv) int known_keylen = 0; /* Only set when Klen_counts_keys = 1 */ const EVP_CIPHER *cipher = 0; int ret = 1; - fips_set_error_print(); - if(!FIPS_mode_set(1)) - goto end; + fips_algtest_init(); while (argc > 1 && argv[1][0] == '-') { |