Remove meaningless debug message
This commit is contained in:
parent
0086ece566
commit
1159f54fe4
3
auth.c
3
auth.c
@ -72,14 +72,13 @@ static int derive_key(struct vtun_host *host)
|
|||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
sodium_hex2bin(host->key, HOST_KEYBYTES,host->passwd,
|
sodium_hex2bin(host->key, HOST_KEYBYTES, host->passwd,
|
||||||
strlen(host->passwd), "", &bin_len, NULL);
|
strlen(host->passwd), "", &bin_len, NULL);
|
||||||
if (bin_len == HOST_KEYBYTES) {
|
if (bin_len == HOST_KEYBYTES) {
|
||||||
vtun_syslog(LOG_ERR,"supplied password is long enough to be the secret");
|
vtun_syslog(LOG_ERR,"supplied password is long enough to be the secret");
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
vtun_syslog(LOG_ERR,"supplied password is %i bits, adjusting it to 32 bits", bin_len);
|
|
||||||
memset(salt, 0xd1, sizeof salt);
|
memset(salt, 0xd1, sizeof salt);
|
||||||
if (crypto_pwhash_scryptsalsa208sha256
|
if (crypto_pwhash_scryptsalsa208sha256
|
||||||
(host->key, HOST_KEYBYTES, host->passwd, strlen(host->passwd), salt,
|
(host->key, HOST_KEYBYTES, host->passwd, strlen(host->passwd), salt,
|
||||||
|
Loading…
Reference in New Issue
Block a user