From ea98cd4b51793dea67d5f285474ac72696095d36 Mon Sep 17 00:00:00 2001 From: Kareem Date: Thu, 23 Apr 2026 16:05:01 -0700 Subject: [PATCH] Properly handle fallback cipher type case in wc_Pkcs11_CryptoDevCb. Thanks to Zou Dikai for the report. --- wolfcrypt/src/wc_pkcs11.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/wolfcrypt/src/wc_pkcs11.c b/wolfcrypt/src/wc_pkcs11.c index fbc394780a..2fbee8ddda 100644 --- a/wolfcrypt/src/wc_pkcs11.c +++ b/wolfcrypt/src/wc_pkcs11.c @@ -6528,6 +6528,9 @@ int wc_Pkcs11_CryptoDevCb(int devId, wc_CryptoInfo* info, void* ctx) } break; #endif + default: + ret = NOT_COMPILED_IN; + break; } #else ret = NOT_COMPILED_IN;