PKCS#11 casting fix for clang

This commit is contained in:
Sean Parkinson
2019-02-28 09:31:17 +10:00
parent a2f8747652
commit edf6318985

View File

@ -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;
}