We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1a9f759 commit a640fb3Copy full SHA for a640fb3
src/wp_wolfprov.c
@@ -1316,13 +1316,19 @@ int wolfssl_provider_init(const OSSL_CORE_HANDLE* handle,
1316
/* To avoid multi-threading issues in FIPS CAST tests, run all tests
1317
* under a lock now */
1318
if (wp_lock(wp_get_cast_mutex()) != 1) {
1319
+ WOLFPROV_ERROR_MSG(WP_LOG_COMP_PROVIDER,
1320
+ "Fatal Error: unable to acquire FIPS CAST lock");
1321
ok = 0;
1322
}
1323
if (ok) {
1324
if (wc_RunAllCast_fips() != 0) {
1325
1326
+ "Fatal Error: FIPS algo selftest failure");
1327
+ ok = 0;
1328
+ }
1329
+ if (wp_unlock(wp_get_cast_mutex()) != 1) {
1330
1331
- wp_unlock(wp_get_cast_mutex());
1332
1333
#endif
1334
0 commit comments