mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-08-02 20:24:39 +02:00
move variable declaration to top of function and silence compiler warning
This commit is contained in:
@@ -695,14 +695,16 @@ WOLFSSL_API int wolfSSL_EVP_PKEY_decrypt(WOLFSSL_EVP_PKEY_CTX *ctx,
|
|||||||
unsigned char *out, size_t *outlen,
|
unsigned char *out, size_t *outlen,
|
||||||
const unsigned char *in, size_t inlen)
|
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");
|
WOLFSSL_ENTER("EVP_PKEY_decrypt");
|
||||||
|
|
||||||
(void)out;
|
(void)out;
|
||||||
(void)outlen;
|
(void)outlen;
|
||||||
(void)in;
|
(void)in;
|
||||||
(void)inlen;
|
(void)inlen;
|
||||||
int len;
|
(void)len;
|
||||||
|
|
||||||
switch (ctx->pkey->type) {
|
switch (ctx->pkey->type) {
|
||||||
#if !defined(NO_RSA) && !defined(HAVE_USER_RSA)
|
#if !defined(NO_RSA) && !defined(HAVE_USER_RSA)
|
||||||
|
Reference in New Issue
Block a user