Explicit casts

This commit is contained in:
Frank Denis 2015-10-09 18:19:42 +02:00
parent 454e3ff720
commit 742a5d788d
1 changed files with 3 additions and 2 deletions

5
auth.c
View File

@ -103,8 +103,9 @@ static void gen_chal(char *chal)
static void auth_chal(char *chal, const struct vtun_host *host)
{
crypto_generichash(chal, VTUN_CHAL_SIZE, chal, VTUN_CHAL_SIZE,
host->key, HOST_KEYBYTES);
crypto_generichash((unsigned char *) chal, VTUN_CHAL_SIZE,
(const unsigned char *) chal,
VTUN_CHAL_SIZE, host->key, HOST_KEYBYTES);
}
/*