mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 10:47:28 +02:00
wolfSSL_RAND_set_rand_method: Cleanup
This commit is contained in:
@ -13244,11 +13244,6 @@ int wolfSSL_Cleanup(void)
|
||||
|
||||
#ifdef OPENSSL_EXTRA
|
||||
wolfSSL_RAND_Cleanup();
|
||||
|
||||
if (wc_FreeMutex(&gRandMethodMutex) != 0)
|
||||
ret = BAD_MUTEX_E;
|
||||
else
|
||||
gRandMethodsInit = 0;
|
||||
#endif
|
||||
|
||||
if (wolfCrypt_Cleanup() != 0) {
|
||||
@ -31902,6 +31897,9 @@ void wolfSSL_RAND_Cleanup(void)
|
||||
gRandMethods->cleanup();
|
||||
wc_UnLockMutex(&gRandMethodMutex);
|
||||
}
|
||||
|
||||
if (wc_FreeMutex(&gRandMethodMutex) == 0)
|
||||
gRandMethodsInit = 0;
|
||||
#endif
|
||||
#ifdef HAVE_GLOBAL_RNG
|
||||
if (wc_LockMutex(&globalRNGMutex) == 0) {
|
||||
|
Reference in New Issue
Block a user