diff options
author | Dr. Stephen Henson <steve@openssl.org> | 2011-09-01 14:15:47 +0000 |
---|---|---|
committer | Dr. Stephen Henson <steve@openssl.org> | 2011-09-01 14:15:47 +0000 |
commit | 5e92fd244cd77cac0923906bdeb27aa4880b758f (patch) | |
tree | d88e2a610334f3c453d40a6b7776c10141a95807 /crypto/evp/e_aes_cbc_hmac_sha1.c | |
parent | d41ce00b8c3b6dbcc0ef29db14d335d824f4cdb2 (diff) |
Stop warnings.
Diffstat (limited to 'crypto/evp/e_aes_cbc_hmac_sha1.c')
-rw-r--r-- | crypto/evp/e_aes_cbc_hmac_sha1.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crypto/evp/e_aes_cbc_hmac_sha1.c b/crypto/evp/e_aes_cbc_hmac_sha1.c index 78a0135470..43fc26d0d1 100644 --- a/crypto/evp/e_aes_cbc_hmac_sha1.c +++ b/crypto/evp/e_aes_cbc_hmac_sha1.c @@ -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); |