Skip to content

Commit 8c74977

Browse files
authored
Merge pull request #10297 from kareem-wolfssl/zd21676
Properly handle fallback cipher type case in wc_Pkcs11_CryptoDevCb.
2 parents 6efbacf + 3f1c6bd commit 8c74977

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

wolfcrypt/src/wc_pkcs11.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6304,6 +6304,7 @@ static int Pkcs11GetCert(Pkcs11Session* session, wc_CryptoInfo* info) {
63046304
* @param [in] info Cryptographic operation data.
63056305
* @param [in] ctx Context data for device - the token object.
63066306
* @return WC_HW_E when a PKCS#11 library call fails.
6307+
* @return NOT_COMPILED_IN when an unsupported operation is requested.
63076308
* @return 0 on success.
63086309
*/
63096310
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)
65256526
}
65266527
break;
65276528
#endif
6529+
default:
6530+
ret = NOT_COMPILED_IN;
6531+
break;
65286532
}
65296533
#else
65306534
ret = NOT_COMPILED_IN;

0 commit comments

Comments
 (0)