Fix warnings (from HEAD).

This commit is contained in:
Dr. Stephen Henson 2011-09-10 21:18:37 +00:00
parent cd447875e6
commit 7d453a3b49
2 changed files with 3 additions and 3 deletions

View file

@ -239,7 +239,7 @@ static int aesni_cbc_hmac_sha1_cipher(EVP_CIPHER_CTX *ctx, unsigned char *out,
if (plen) { /* "TLS" mode of operation */
/* figure out payload length */
if (len<(out[len-1]+1+SHA_DIGEST_LENGTH))
if (len<(size_t)(out[len-1]+1+SHA_DIGEST_LENGTH))
return 0;
len -= (out[len-1]+1+SHA_DIGEST_LENGTH);
@ -288,7 +288,7 @@ static int aesni_cbc_hmac_sha1_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void
memset (hmac_key,0,sizeof(hmac_key));
if (arg > sizeof(hmac_key)) {
if (arg > (int)sizeof(hmac_key)) {
SHA1_Init(&key->head);
SHA1_Update(&key->head,ptr,arg);
SHA1_Final(hmac_key,&key->head);

View file

@ -224,7 +224,7 @@ static int rc4_hmac_md5_ctrl(EVP_CIPHER_CTX *ctx, int type, int arg, void *ptr)
memset (hmac_key,0,sizeof(hmac_key));
if (arg > sizeof(hmac_key)) {
if (arg > (int)sizeof(hmac_key)) {
MD5_Init(&key->head);
MD5_Update(&key->head,ptr,arg);
MD5_Final(hmac_key,&key->head);