mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Move half of the Challenge Hash stuff.
This commit is contained in:
@ -48,6 +48,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "../Pch.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "pnEncryption/plChallengeHash.h"
|
||||
|
||||
namespace Ngl { namespace Auth {
|
||||
/*****************************************************************************
|
||||
*
|
||||
@ -2661,7 +2663,7 @@ bool LoginRequestTrans::Send () {
|
||||
clientChallenge,
|
||||
s_active->serverChallenge,
|
||||
s_accountNamePassHash,
|
||||
&challengeHash
|
||||
challengeHash
|
||||
);
|
||||
}
|
||||
|
||||
@ -2818,9 +2820,9 @@ AccountCreateRequestTrans::AccountCreateRequestTrans (
|
||||
StrCopy(m_accountName, accountName, arrsize(m_accountName));
|
||||
|
||||
CryptHashPassword(
|
||||
m_accountName,
|
||||
password,
|
||||
&m_namePassHash
|
||||
_TEMP_CONVERT_FROM_WCHAR_T(m_accountName),
|
||||
_TEMP_CONVERT_FROM_WCHAR_T(password),
|
||||
m_namePassHash
|
||||
);
|
||||
}
|
||||
|
||||
@ -2888,9 +2890,9 @@ AccountCreateFromKeyRequestTrans::AccountCreateFromKeyRequestTrans (
|
||||
StrCopy(m_accountName, accountName, arrsize(m_accountName));
|
||||
|
||||
CryptHashPassword(
|
||||
m_accountName,
|
||||
password,
|
||||
&m_namePassHash
|
||||
_TEMP_CONVERT_FROM_WCHAR_T(m_accountName),
|
||||
_TEMP_CONVERT_FROM_WCHAR_T(password),
|
||||
m_namePassHash
|
||||
);
|
||||
}
|
||||
|
||||
@ -3186,9 +3188,9 @@ AccountChangePasswordRequestTrans::AccountChangePasswordRequestTrans (
|
||||
StrCopy(m_accountName, accountName, arrsize(m_accountName));
|
||||
|
||||
CryptHashPassword(
|
||||
m_accountName,
|
||||
password,
|
||||
&m_namePassHash
|
||||
_TEMP_CONVERT_FROM_WCHAR_T(m_accountName),
|
||||
_TEMP_CONVERT_FROM_WCHAR_T(password),
|
||||
m_namePassHash
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -48,6 +48,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
#include "../Pch.h"
|
||||
#pragma hdrstop
|
||||
|
||||
#include "pnEncryption/plChallengeHash.h"
|
||||
|
||||
|
||||
namespace Ngl { namespace Csr {
|
||||
/*****************************************************************************
|
||||
@ -659,7 +661,7 @@ bool LoginRequestTrans::Send () {
|
||||
clientChallenge,
|
||||
s_active->serverChallenge,
|
||||
m_namePassHash,
|
||||
&challengeHash
|
||||
challengeHash
|
||||
);
|
||||
|
||||
const uintptr_t msg[] = {
|
||||
|
Reference in New Issue
Block a user