Missing casts

This commit is contained in:
Juliusz Sosinowicz
2023-01-31 14:42:26 +01:00
parent b5e7761e58
commit 5b0903a82d
2 changed files with 3 additions and 3 deletions

View File

@ -671,8 +671,8 @@ static int SendStatelessReplyDtls13(const WOLFSSL* ssl, WolfSSL_CH* ch,
goto dtls13_cleanup; goto dtls13_cleanup;
/* Push the cookie to extensions */ /* Push the cookie to extensions */
ret = CreateCookieExt(ssl, cookieHash, cookieHashSz, &parsedExts, ret = CreateCookieExt(ssl, cookieHash, (word16)cookieHashSz,
cs.cipherSuite0, cs.cipherSuite); &parsedExts, cs.cipherSuite0, cs.cipherSuite);
if (ret != 0) if (ret != 0)
goto dtls13_cleanup; goto dtls13_cleanup;

View File

@ -3350,7 +3350,7 @@ int CreateCookieExt(const WOLFSSL* ssl, byte* hash, word16 hashSz,
word16 cookieSz = 0; word16 cookieSz = 0;
/* Cookie Data = Hash Len | Hash | CS | KeyShare Group */ /* Cookie Data = Hash Len | Hash | CS | KeyShare Group */
cookie[cookieSz++] = hashSz; cookie[cookieSz++] = (byte)hashSz;
XMEMCPY(cookie + cookieSz, hash, hashSz); XMEMCPY(cookie + cookieSz, hash, hashSz);
cookieSz += hashSz; cookieSz += hashSz;
cookie[cookieSz++] = cipherSuite0; cookie[cookieSz++] = cipherSuite0;