CRYPTO_THREAD_set_local(&master_key, NULL);
}
}
-
-#ifdef FIPS_MODULE
-void CRYPTO_THREAD_clean_local_for_fips(void)
-{
- MASTER_KEY_ENTRY *mkey;
-
- /*
- * If we never initialized the master key, there
- * is no data to clean, so we are done here
- */
- if (master_key_init == 0)
- return;
-
- mkey = CRYPTO_THREAD_get_local(&master_key);
- if (mkey != NULL)
- clean_master_key(mkey);
- CRYPTO_THREAD_cleanup_local(&master_key);
-}
-#endif
DEP_FINI_ATTRIBUTE void cleanup(void)
{
CRYPTO_THREAD_lock_free(self_test_lock);
- CRYPTO_THREAD_clean_local_for_fips();
+ CRYPTO_THREAD_clean_local();
}
#endif