Fix an implicit type conversion

This commit is contained in:
Satoshi Yamaguchi
2022-09-03 23:56:54 +09:00
parent 85776f0069
commit b52d193ee3

View File

@@ -3436,7 +3436,7 @@ WOLFSSL_EVP_PKEY* wolfSSL_EVP_PKEY_new_CMAC_key(WOLFSSL_ENGINE* e,
if (len) {
XMEMCPY(pkey->pkey.ptr, priv, len);
}
pkey->pkey_sz = len;
pkey->pkey_sz = (int)len;
pkey->type = pkey->save_type = EVP_PKEY_CMAC;
pkey->cmacCtx = ctx;
}