summaryrefslogtreecommitdiffstats
path: root/fips/hmac
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-03-25 16:36:46 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-03-25 16:36:46 +0000
commitcd22dfbf0109ae42f650c0d0b1d0e956fe9a1574 (patch)
treea3f3ca931c8dfd6b86d5e5666a6c35575817ca1e /fips/hmac
parentd4178c8fb1736354d16a6e1b82c5e02433973374 (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/hmac')
-rw-r--r--fips/hmac/fips_hmactest.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/fips/hmac/fips_hmactest.c b/fips/hmac/fips_hmactest.c
index d1f0b4c1ca..58e4a35a5b 100644
--- a/fips/hmac/fips_hmactest.c
+++ b/fips/hmac/fips_hmactest.c
@@ -90,9 +90,7 @@ int main(int argc, char **argv)
FILE *in = NULL, *out = NULL;
int ret = 1;
- fips_set_error_print();
- if(!FIPS_mode_set(1))
- goto end;
+ fips_algtest_init();
if (argc == 1)
in = stdin;