View Single Post
  #12  
Old 10-22-2017, 02:33 PM
Jokerpatch
Fire Beetle
 
Join Date: Nov 2008
Location: Overthere
Posts: 9
Default

the problems i found were in this function:

Code:
std::string eqcrypt_argon2(const std::string &msg)
{
	std::string ret;
	ret.resize(crypto_pwhash_STRBYTES);

	if (crypto_pwhash_str(&ret[0], &msg[0], msg.length(), crypto_pwhash_OPSLIMIT_SENSITIVE, crypto_pwhash_MEMLIMIT_SENSITIVE) != 0) {
		return "";
	}

	return ret;
}
the crypto_pwhash functions and variables dont' exist, what i'm thinking is someone was changing something in the source and forgot to remove old calls or just didn't update them. this function does the same things as another one: just calling the functions that do exist:

Code:
std::string eqcrypt_scrypt(const std::string &msg)
{
	std::string ret;
	ret.resize(crypto_pwhash_scryptsalsa208sha256_STRBYTES);

	if (crypto_pwhash_scryptsalsa208sha256_str(&ret[0], &msg[0], msg.length(),
		crypto_pwhash_scryptsalsa208sha256_OPSLIMIT_SENSITIVE, crypto_pwhash_scryptsalsa208sha256_MEMLIMIT_SENSITIVE) != 0) {
		return "";
	}

	return ret;
}
so it compiled fine after i changed the calls to the correct functions declarations, the rebuild is still moving along so i'll see if the server works when its done.
Reply With Quote