Use the correct mutex type for embOS

OS_MUTEX_Lock() is acutally a non-blocking mutex lock, for
wc_LockMutex() we need a blocking mutex. Switch to this.
This commit is contained in:
Andrew Hutchings
2022-07-04 15:59:36 +01:00
parent 1077829f9d
commit f8c67345d6

View File

@ -2270,7 +2270,7 @@ int wolfSSL_CryptHwMutexUnLock(void)
int wc_LockMutex(wolfSSL_Mutex* m)
{
OS_MUTEX_Lock((OS_MUTEX*) m);
OS_MUTEX_LockBlocked((OS_MUTEX*) m);
return 0;
}