diff --git a/wolfcrypt/src/evp.c b/wolfcrypt/src/evp.c index c87bd0b99..7225e7424 100644 --- a/wolfcrypt/src/evp.c +++ b/wolfcrypt/src/evp.c @@ -695,14 +695,16 @@ WOLFSSL_API int wolfSSL_EVP_PKEY_decrypt(WOLFSSL_EVP_PKEY_CTX *ctx, unsigned char *out, size_t *outlen, const unsigned char *in, size_t inlen) { - if (ctx == NULL)return WOLFSSL_FAILURE; + int len; + + if (ctx == NULL)return 0; WOLFSSL_ENTER("EVP_PKEY_decrypt"); (void)out; (void)outlen; (void)in; (void)inlen; - int len; + (void)len; switch (ctx->pkey->type) { #if !defined(NO_RSA) && !defined(HAVE_USER_RSA)