Commit 2f38b389 authored by Dr. Stephen Henson's avatar Dr. Stephen Henson
Browse files

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.
parent c2fd5989
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;