diff options
Diffstat (limited to 'fips/fips.c')
-rw-r--r-- | fips/fips.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/fips/fips.c b/fips/fips.c index 86adc6be51..c7d4bb567c 100644 --- a/fips/fips.c +++ b/fips/fips.c @@ -315,6 +315,13 @@ int FIPS_mode_set(int onoff) goto end; } + if (!FIPS_selftest_drbg()) + { + fips_selftest_fail = 1; + ret = 0; + goto end; + } + /* Perform RNG KAT before seeding */ if (!FIPS_selftest_rng()) { |