Skip Menu |
 

From: Gilles Espinasse <g.esp@free.fr>
To: krb5-bugs@mit.edu
Subject: [PATCH] krb5: fix crypto openssl hmac warning
Date: Thu, 9 May 2013 14:44:51 +0200
CC: Gilles Espinasse <g.esp@free.fr>
hmac.c: In function 'krb5int_hmac_keyblock':
hmac.c:108: warning: initialization discards qualifiers from pointer target type

nss hmac.c already has const here

Signed-off-by: Gilles Espinasse <g.esp@free.fr>
---
src/lib/crypto/openssl/hmac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/lib/crypto/openssl/hmac.c b/src/lib/crypto/openssl/hmac.c
index f92ce8b..926790a 100644
--- a/src/lib/crypto/openssl/hmac.c
+++ b/src/lib/crypto/openssl/hmac.c
@@ -105,7 +105,7 @@ krb5int_hmac_keyblock(const struct krb5_hash_provider *hash,
HMAC_CTX_init(&c);
HMAC_Init(&c, keyblock->contents, keyblock->length, map_digest(hash));
for (i = 0; i < num_data; i++) {
- krb5_crypto_iov *iov = &data[i];
+ const krb5_crypto_iov *iov = &data[i];

if (SIGN_IOV(iov))
HMAC_Update(&c, (unsigned char*) iov->data.data, iov->data.length);
--
1.7.2.5
From: ghudson@mit.edu
Subject: git commit

fix crypto openssl hmac warning

https://github.com/krb5/krb5/commit/efa31786c01bc7be064a6f94c233488c30e4a2dc
Author: Gilles Espinasse <g.esp@free.fr>
Committer: Greg Hudson <ghudson@mit.edu>
Commit: efa31786c01bc7be064a6f94c233488c30e4a2dc
Branch: master
src/lib/crypto/openssl/hmac.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)