summaryrefslogtreecommitdiff
path: root/fips/des
diff options
context:
space:
mode:
authorsteve <steve>2011-03-25 16:36:36 +0000
committersteve <steve>2011-03-25 16:36:36 +0000
commitc4f91d39eca5331b3df8da5212022b8115269e6c (patch)
tree7c0731908f8733aee0e60522f095f280826b8057 /fips/des
parentad34b68e1f4cae23e0c6ac9a91f9a2d7145d230e (diff)
downloadopenssl-c4f91d39eca5331b3df8da5212022b8115269e6c.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/des')
-rw-r--r--fips/des/fips_desmovs.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/fips/des/fips_desmovs.c b/fips/des/fips_desmovs.c
index 16b8dc193..88c306370 100644
--- a/fips/des/fips_desmovs.c
+++ b/fips/des/fips_desmovs.c
@@ -633,11 +633,7 @@ int main(int argc, char **argv)
char fn[250] = "", rfn[256] = "";
int f_opt = 0, d_opt = 1;
-#ifdef OPENSSL_FIPS
- fips_set_error_print();
- if(!FIPS_mode_set(1))
- EXIT(1);
-#endif
+ fips_algtest_init();
if (argc > 1)
{
if (strcasecmp(argv[1], "-d") == 0)