2
3
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:
Darryl Pogue
2012-02-12 01:19:22 -08:00
parent 1b22f044f0
commit 4a1b36b284
11 changed files with 172 additions and 84 deletions

View File

@ -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
);
}

View File

@ -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[] = {