FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/wc_port.c
/* Function that locks or unlocks a mutex based on the flag passed in.
     *
     * flag lock or unlock i.e. CRYPTO_LOCK
     * type the type of lock to unlock or lock
     * file name of the file calling
     * line the line number from file calling
     */
Function that locks or unlocks a mutex based on the flag passed in.
flag lock or unlock i.e. CRYPTO_LOCK
type the type of lock to unlock or lock
file name of the file calling
line the line number from file calling
Function that locks or unlocks a mutex based on the flag passed in . flag lock or unlock i . e . CRYPTO_LOCK type the type of lock to unlock or lock file name of the file calling line the line number from file calling
int wc_LockMutex_ex(int flag, int type, const char* file, int line)
    {
        if (compat_mutex_cb != NULL) {
            compat_mutex_cb(flag, type, file, line);
            return 0;
        }
        else {
            WOLFSSL_MSG("Mutex call back function not set. Call wc_SetMutexCb");
            return BAD_STATE_E;
        }
    }
int wc_LockMutex_ex ( int flag , int type , const char * file , int line ) { if ( compat_mutex_cb != NULL ) { compat_mutex_cb ( flag , type , file , line ) ; return 0 ; } else { WOLFSSL_MSG ( " " ) ; return BAD_STATE_E ; } }
Function that locks or unlocks a mutex based on the flag passed in.
Function that locks or unlocks a mutex based on the flag passed in .