From: Klas Lindfors Date: Thu, 25 Oct 2012 16:55:59 +0000 (+0200) Subject: keep const when casting X-Git-Tag: v1.9.0~5 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8001fead13a2d8212b3b2e9e3a45fbbd197969fc;p=yubikey-personalization keep const when casting --- 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;