Explicit casts
This commit is contained in:
parent
454e3ff720
commit
742a5d788d
5
auth.c
5
auth.c
@ -103,8 +103,9 @@ static void gen_chal(char *chal)
|
|||||||
|
|
||||||
static void auth_chal(char *chal, const struct vtun_host *host)
|
static void auth_chal(char *chal, const struct vtun_host *host)
|
||||||
{
|
{
|
||||||
crypto_generichash(chal, VTUN_CHAL_SIZE, chal, VTUN_CHAL_SIZE,
|
crypto_generichash((unsigned char *) chal, VTUN_CHAL_SIZE,
|
||||||
host->key, HOST_KEYBYTES);
|
(const unsigned char *) chal,
|
||||||
|
VTUN_CHAL_SIZE, host->key, HOST_KEYBYTES);
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
Loading…
Reference in New Issue
Block a user