mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 18:57:27 +02:00
Missing casts
This commit is contained in:
@ -671,8 +671,8 @@ static int SendStatelessReplyDtls13(const WOLFSSL* ssl, WolfSSL_CH* ch,
|
||||
goto dtls13_cleanup;
|
||||
|
||||
/* Push the cookie to extensions */
|
||||
ret = CreateCookieExt(ssl, cookieHash, cookieHashSz, &parsedExts,
|
||||
cs.cipherSuite0, cs.cipherSuite);
|
||||
ret = CreateCookieExt(ssl, cookieHash, (word16)cookieHashSz,
|
||||
&parsedExts, cs.cipherSuite0, cs.cipherSuite);
|
||||
if (ret != 0)
|
||||
goto dtls13_cleanup;
|
||||
|
||||
|
@ -3350,7 +3350,7 @@ int CreateCookieExt(const WOLFSSL* ssl, byte* hash, word16 hashSz,
|
||||
word16 cookieSz = 0;
|
||||
|
||||
/* Cookie Data = Hash Len | Hash | CS | KeyShare Group */
|
||||
cookie[cookieSz++] = hashSz;
|
||||
cookie[cookieSz++] = (byte)hashSz;
|
||||
XMEMCPY(cookie + cookieSz, hash, hashSz);
|
||||
cookieSz += hashSz;
|
||||
cookie[cookieSz++] = cipherSuite0;
|
||||
|
Reference in New Issue
Block a user