summaryrefslogtreecommitdiffstats
path: root/fips/fips.c
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-05-11 14:49:01 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-05-11 14:49:01 +0000
commit2f38b38986c6cdb3e718457deac4a065de825af9 (patch)
tree1c3b9ef7f40dd40353e6b5a24d3c245912beb5af /fips/fips.c
parentc2fd5989945501b81b7d698c71eb34d767ac55bd (diff)
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.
Diffstat (limited to 'fips/fips.c')
-rw-r--r--fips/fips.c2
1 files changed, 1 insertions, 1 deletions
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;