Previously, if the loaded configuration file disabled an algorithm
tested during FIPS-140 power-on self-tests, the test would fail. By
loading the configuration file after the test is finished, such failure
is avoided as any algorithm is allowed during the tests.
Signed-off-by: Anderson Toshiyuki Sasaki <ansasaki@redhat.com>
_gnutls_register_accel_crypto();
_gnutls_cryptodev_init();
- _gnutls_load_system_priorities();
#ifdef ENABLE_FIPS140
/* These self tests are performed on the overridden algorithms
_gnutls_fips_mode_reset_zombie();
}
#endif
+ _gnutls_load_system_priorities();
_gnutls_switch_lib_state(LIB_STATE_OPERATIONAL);
ret = 0;