tls warning changes, submitted by Kevin Baca

This commit is contained in:
Todd A Ouska 2011-07-12 13:55:20 -07:00
parent 015960e6a2
commit 0c65a6b5cf
1 changed files with 1 additions and 11 deletions

View File

@ -30,16 +30,6 @@
#ifndef NO_TLS
#ifndef min
static INLINE word32 min(word32 a, word32 b)
{
return a > b ? b : a;
}
#endif /* min */
/* calculate XOR for TLSv1 PRF */
static INLINE void get_xor(byte *digest, word32 digLen, byte* md5, byte* sha)
{
@ -324,7 +314,7 @@ void TLS_hmac(SSL* ssl, byte* digest, const byte* in, word32 sz,
HmacSetKey(&hmac, type, GetMacSecret(ssl, verify), ssl->specs.hash_size);
HmacUpdate(&hmac, seq, SEQ_SZ); /* seq_num */
inner[0] = content; /* type */
inner[0] = (byte)content; /* type */
inner[ENUM_LEN] = ssl->version.major;
inner[ENUM_LEN + ENUM_LEN] = ssl->version.minor; /* version */
XMEMCPY(&inner[ENUM_LEN + VERSION_SZ], length, LENGTH_SZ); /* length */