mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
PKCS#11 casting fix for clang
This commit is contained in:
@ -1759,7 +1759,7 @@ static int Pkcs11GetEccParams(Pkcs11Session* session, CK_OBJECT_HANDLE privKey,
|
||||
if (ret == 0) {
|
||||
/* PKCS #11 wraps the OID in ASN.1 */
|
||||
curveId = wc_ecc_get_curve_id_from_oid(oid + 2,
|
||||
template[0].ulValueLen - 2);
|
||||
(word32)template[0].ulValueLen - 2);
|
||||
if (curveId == ECC_CURVE_INVALID)
|
||||
ret = WC_HW_E;
|
||||
}
|
||||
|
Reference in New Issue
Block a user