From d1b6ddca751c855987287dbc89a6edf1648d4d63 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 569bc5cb34..9ae5abe7cd 100644 --- a/wolfcrypt/src/wc_pkcs11.c +++ b/wolfcrypt/src/wc_pkcs11.c @@ -6525,6 +6525,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;