FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* increments ref count of WOLFSSL_EVP_PKEY. Return 1 on success, 0 on error */
increments ref count of WOLFSSL_EVP_PKEY. Return 1 on success, 0 on error
increments ref count of WOLFSSL_EVP_PKEY . Return 1 on success 0 on error
int wolfSSL_EVP_PKEY_up_ref(WOLFSSL_EVP_PKEY* pkey)
{
    if (pkey) {
        if (wc_LockMutex(&pkey->refMutex) != 0) {
            WOLFSSL_MSG("Failed to lock pkey mutex");
        }
        pkey->references++;
        wc_UnLockMutex(&pkey->refMutex);
        return 1;
    }
    return 0;
}
int wolfSSL_EVP_PKEY_up_ref ( WOLFSSL_EVP_PKEY * pkey ) { if ( pkey ) { if ( wc_LockMutex ( & pkey -> refMutex ) != 0 ) { WOLFSSL_MSG ( " " ) ; } pkey -> references ++ ; wc_UnLockMutex ( & pkey -> refMutex ) ; return 1 ; } return 0 ; }
increments ref count of WOLFSSL_EVP_PKEY.
increments ref count of WOLFSSL_EVP_PKEY .