summaryrefslogtreecommitdiffstats
path: root/crypto/evp
diff options
context:
space:
mode:
authorDr. Stephen Henson <steve@openssl.org>2011-09-10 21:18:37 +0000
committerDr. Stephen Henson <steve@openssl.org>2011-09-10 21:18:37 +0000
commit7d453a3b49e911e85883fe367a7cb18ef03382ad (patch)
treecbfed8fa1032ff73a41d3a769cffdb08992bfa19 /crypto/evp
parentcd447875e65fb8de648bfa30126e24f2786e2040 (diff)
Fix warnings (from HEAD).
Diffstat (limited to 'crypto/evp')
-rw-r--r--crypto/evp/e_aes_cbc_hmac_sha1.c4
-rw-r--r--crypto/evp/e_rc4_hmac_md5.c2
2 files changed, 3 insertions, 3 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);
diff --git a/crypto/evp/e_rc4_hmac_md5.c b/crypto/evp/e_rc4_hmac_md5.c
index 1fa2aa2b84..94c011000c 100644
--- a/crypto/evp/e_rc4_hmac_md5.c
+++ b/crypto/evp/e_rc4_hmac_md5.c
@@ -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);