Remove meaningless debug message

This commit is contained in:
Frank Denis 2015-10-16 22:52:16 +02:00
parent 0086ece566
commit 1159f54fe4
1 changed files with 6 additions and 7 deletions

3
auth.c
View File

@ -72,14 +72,13 @@ static int derive_key(struct vtun_host *host)
return -1;
}
sodium_hex2bin(host->key, HOST_KEYBYTES,host->passwd,
sodium_hex2bin(host->key, HOST_KEYBYTES, host->passwd,
strlen(host->passwd), "", &bin_len, NULL);
if (bin_len == HOST_KEYBYTES) {
vtun_syslog(LOG_ERR,"supplied password is long enough to be the secret");
return 0;
}
vtun_syslog(LOG_ERR,"supplied password is %i bits, adjusting it to 32 bits", bin_len);
memset(salt, 0xd1, sizeof salt);
if (crypto_pwhash_scryptsalsa208sha256
(host->key, HOST_KEYBYTES, host->passwd, strlen(host->passwd), salt,