projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d41ce00
)
Stop warnings.
author
Dr. Stephen Henson
<steve@openssl.org>
Thu, 1 Sep 2011 14:15:47 +0000
(14:15 +0000)
committer
Dr. Stephen Henson
<steve@openssl.org>
Thu, 1 Sep 2011 14:15:47 +0000
(14:15 +0000)
crypto/evp/e_aes_cbc_hmac_sha1.c
patch
|
blob
|
history
diff --git
a/crypto/evp/e_aes_cbc_hmac_sha1.c
b/crypto/evp/e_aes_cbc_hmac_sha1.c
index 78a013547071c9dab3af918e8c43ccb7e8ed1120..43fc26d0d164814cefc5500161ff1ae36ea523ee 100644
(file)
--- 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);