mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 19:00:49 +02:00
Merge pull request #10297 from kareem-wolfssl/zd21676
Properly handle fallback cipher type case in wc_Pkcs11_CryptoDevCb.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user