Merge pull request #10297 from kareem-wolfssl/zd21676

Properly handle fallback cipher type case in wc_Pkcs11_CryptoDevCb.
This commit is contained in:
David Garske
2026-05-07 14:36:05 -07:00
committed by GitHub
+4
View File
@@ -6304,6 +6304,7 @@ exit:
* @param [in] info Cryptographic operation data.
* @param [in] ctx Context data for device - the token object.
* @return WC_HW_E when a PKCS#11 library call fails.
* @return NOT_COMPILED_IN when an unsupported operation is requested.
* @return 0 on success.
*/
int wc_Pkcs11_CryptoDevCb(int devId, wc_CryptoInfo* info, void* ctx)
@@ -6525,6 +6526,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;