move variable declaration to top of function and silence compiler warning

This commit is contained in:
Jacob Barthelmeh
2017-04-20 22:27:04 -06:00
parent fcb1a10a3c
commit 39126cbb63

View File

@@ -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)