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/rsa | |
parent | d4178c8fb1736354d16a6e1b82c5e02433973374 (diff) |
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/rsa')
-rw-r--r-- | fips/rsa/fips_rsagtest.c | 4 | ||||
-rw-r--r-- | fips/rsa/fips_rsastest.c | 4 | ||||
-rw-r--r-- | fips/rsa/fips_rsavtest.c | 4 |
3 files changed, 3 insertions, 9 deletions
diff --git a/fips/rsa/fips_rsagtest.c b/fips/rsa/fips_rsagtest.c index 434d332b92..78b4531398 100644 --- a/fips/rsa/fips_rsagtest.c +++ b/fips/rsa/fips_rsagtest.c @@ -94,9 +94,7 @@ int main(int argc, char **argv) int ret = 1; - fips_set_error_print(); - if(!FIPS_mode_set(1)) - goto end; + fips_algtest_init(); if (argc == 1) in = stdin; diff --git a/fips/rsa/fips_rsastest.c b/fips/rsa/fips_rsastest.c index 2d66d92116..7a3dd31cbb 100644 --- a/fips/rsa/fips_rsastest.c +++ b/fips/rsa/fips_rsastest.c @@ -91,9 +91,7 @@ int main(int argc, char **argv) int ret = 1, Saltlen = -1; - fips_set_error_print(); - if(!FIPS_mode_set(1)) - goto end; + fips_algtest_init(); if ((argc > 2) && !strcmp("-saltlen", argv[1])) { diff --git a/fips/rsa/fips_rsavtest.c b/fips/rsa/fips_rsavtest.c index 5886a19b03..dbf73bee88 100644 --- a/fips/rsa/fips_rsavtest.c +++ b/fips/rsa/fips_rsavtest.c @@ -96,9 +96,7 @@ int main(int argc, char **argv) int ret = 1; int Saltlen = -1; - fips_set_error_print(); - if(!FIPS_mode_set(1)) - goto end; + fips_algtest_init(); if ((argc > 2) && !strcmp("-saltlen", argv[1])) { |