Go Back   EQEmulator Home > EQEmulator Forums > Support > Support::Linux Servers

Support::Linux Servers Support forum for Linux EQEMu users.

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 10-22-2017, 02:33 PM
Jokerpatch
Fire Beetle
 
Join Date: Nov 2008
Location: Overthere
Posts: 11
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
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

   

All times are GMT -4. The time now is 11:28 AM.


 

Everquest is a registered trademark of Daybreak Game Company LLC.
EQEmulator is not associated or affiliated in any way with Daybreak Game Company LLC.
Except where otherwise noted, this site is licensed under a Creative Commons License.
       
Powered by vBulletin®, Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Template by Bluepearl Design and vBulletin Templates - Ver3.3