From 8001fead13a2d8212b3b2e9e3a45fbbd197969fc Mon Sep 17 00:00:00 2001 From: Klas Lindfors Date: Thu, 25 Oct 2012 18:55:59 +0200 Subject: [PATCH] keep const when casting --- ykpbkdf2.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ykpbkdf2.c b/ykpbkdf2.c index 535b414..e64d582 100644 --- a/ykpbkdf2.c +++ b/ykpbkdf2.c @@ -41,8 +41,8 @@ int yk_hmac_sha1(const char *key, size_t key_len, return 0; if (hmac(SHA1, - (unsigned char *)text, (int)text_len, - (unsigned char *)key, (int)key_len, + (const unsigned char *)text, (int)text_len, + (const unsigned char *)key, (int)key_len, output)) return 0; return 1; -- 2.39.5