From 9e06c3e57cdf53a6a30a6db28149c9b39e30ba81 Mon Sep 17 00:00:00 2001 From: "levitte@gmail.com" Date: Sun, 13 Sep 2009 09:54:13 +0000 Subject: [PATCH] Fixed gcc warnings. git-svn-id: https://yubikey-personalization.googlecode.com/svn/trunk@192 b62f149e-849f-11dd-9899-c7ba65f7c4c7 --- ykpbkdf2.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ykpbkdf2.c b/ykpbkdf2.c index 87a687b..9273d1c 100644 --- a/ykpbkdf2.c +++ b/ykpbkdf2.c @@ -57,7 +57,9 @@ int yk_pbkdf2(const char *passphrase, { size_t l = ((dklen - 1 + prf_method->output_size) / prf_method->output_size); +#if 0 /* r for "rest" is unused but may be interesting in the future */ size_t r = dklen - ((l - 1) * prf_method->output_size); +#endif unsigned int block_count; @@ -75,7 +77,7 @@ int yk_pbkdf2(const char *passphrase, for (iteration = 0; iteration < iterations; iteration++) { if (!prf_method->prf_fn(passphrase, strlen(passphrase), - block, block_len, + (char *)block, block_len, block, sizeof(block))) return 0; block_len = prf_method->output_size; -- 2.39.5