FreeRTOS-Plus/ThirdParty/WolfSSL-FIPS-Ready/wolfcrypt/src/evp.c
/* Frees the WOLFSSL_EVP_PKEY_CTX passed in.
 *
 * return WOLFSSL_SUCCESS on success
 */
Frees the WOLFSSL_EVP_PKEY_CTX passed in.
return WOLFSSL_SUCCESS on success
Frees the WOLFSSL_EVP_PKEY_CTX passed in . return WOLFSSL_SUCCESS on success
int wolfSSL_EVP_PKEY_CTX_free(WOLFSSL_EVP_PKEY_CTX *ctx)
{
    if (ctx == NULL) return 0;
    WOLFSSL_ENTER("EVP_PKEY_CTX_free");
    if (ctx->pkey != NULL)
        wolfSSL_EVP_PKEY_free(ctx->pkey);
    if (ctx->peerKey != NULL)
        wolfSSL_EVP_PKEY_free(ctx->peerKey);
    XFREE(ctx, NULL, DYNAMIC_TYPE_PUBLIC_KEY);
    return WOLFSSL_SUCCESS;
}
int wolfSSL_EVP_PKEY_CTX_free ( WOLFSSL_EVP_PKEY_CTX * ctx ) { if ( ctx == NULL ) return 0 ; WOLFSSL_ENTER ( " " ) ; if ( ctx -> pkey != NULL ) wolfSSL_EVP_PKEY_free ( ctx -> pkey ) ; if ( ctx -> peerKey != NULL ) wolfSSL_EVP_PKEY_free ( ctx -> peerKey ) ; XFREE ( ctx , NULL , DYNAMIC_TYPE_PUBLIC_KEY ) ; return WOLFSSL_SUCCESS ; }
Frees the WOLFSSL_EVP_PKEY_CTX passed in.
Frees the WOLFSSL_EVP_PKEY_CTX passed in .