From d82a7b10c5602cf4d0de33bb9dc7025ca9768100 Mon Sep 17 00:00:00 2001 From: Daniel Pouzzner Date: Wed, 5 Mar 2025 15:33:55 -0600 Subject: [PATCH] wolfcrypt/src/evp.c: fix a name conflict around "cipherType" that provokes -Wshadow on gcc pre-4v8. --- wolfcrypt/src/evp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wolfcrypt/src/evp.c b/wolfcrypt/src/evp.c index aa166c28b..d41beb846 100644 --- a/wolfcrypt/src/evp.c +++ b/wolfcrypt/src/evp.c @@ -6884,7 +6884,7 @@ void wolfSSL_EVP_init(void) ret = wc_AriaInitCrypt(&ctx->cipher.aria, MC_ALGID_ARIA_256BITKEY); break; default: - WOLFSSL_MSG("Not implemented cipherType"); + WOLFSSL_MSG("Unimplemented cipherType"); return WOLFSSL_NOT_IMPLEMENTED; /* This should never happen */ } if (ret != 0) { @@ -8267,9 +8267,9 @@ void wolfSSL_EVP_init(void) } #endif /* !NO_AES || !NO_DES3 */ - static int IsCipherTypeAEAD(unsigned char cipherType) + static int IsCipherTypeAEAD(unsigned int type) { - switch (cipherType) { + switch (type) { case WC_AES_128_GCM_TYPE: case WC_AES_192_GCM_TYPE: case WC_AES_256_GCM_TYPE: