From 2f38b38986c6cdb3e718457deac4a065de825af9 Mon Sep 17 00:00:00 2001 From: "Dr. Stephen Henson" Date: Wed, 11 May 2011 14:49:01 +0000 Subject: [PATCH] Set FIPS mode for values other than 1. The only current effect is to return a consistent value. So calling FIPS_module_mode_set(n) for n != 0 will result in FIPS_module_mode() returning n. This will support future expansion of more FIPS modes e.g. a Suite B mode. --- fips/fips.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fips/fips.c b/fips/fips.c index 6498595ec5..2cb6866d64 100644 --- a/fips/fips.c +++ b/fips/fips.c @@ -281,7 +281,7 @@ int FIPS_module_mode_set(int onoff) } if(FIPS_selftest()) - fips_set_mode(1); + fips_set_mode(onoff); else { fips_selftest_fail = 1; -- 2.34.1