Temp: printf k directly to stdout (both paths) so it always shows
This commit is contained in:
@@ -27,6 +27,7 @@
|
|||||||
#include "SslContext.h"
|
#include "SslContext.h"
|
||||||
#include "Timezone.h"
|
#include "Timezone.h"
|
||||||
#include "Util.h"
|
#include "Util.h"
|
||||||
|
#include <cstdio>
|
||||||
#include <rapidjson/document.h>
|
#include <rapidjson/document.h>
|
||||||
|
|
||||||
namespace Battlenet::Services
|
namespace Battlenet::Services
|
||||||
@@ -285,6 +286,7 @@ uint32 Authentication::HandleVerifyWebCredentials(std::string_view webCredential
|
|||||||
logonResult.set_session_key(k.data(), 64);
|
logonResult.set_session_key(k.data(), 64);
|
||||||
TC_LOG_INFO("bnet", "AUTHDBG logon k={}", ByteArrayToHexStr(k));
|
TC_LOG_INFO("bnet", "AUTHDBG logon k={}", ByteArrayToHexStr(k));
|
||||||
TC_LOG_ERROR("bnet", "AUTHDBG_LOGON_K {}", ByteArrayToHexStr(k));
|
TC_LOG_ERROR("bnet", "AUTHDBG_LOGON_K {}", ByteArrayToHexStr(k));
|
||||||
|
printf("AUTHDBG_LOGON_K %s\n", ByteArrayToHexStr(k).c_str()); fflush(stdout);
|
||||||
|
|
||||||
Service<authentication::v1::AuthenticationListener>(session).OnLogonComplete(&logonResult);
|
Service<authentication::v1::AuthenticationListener>(session).OnLogonComplete(&logonResult);
|
||||||
});
|
});
|
||||||
@@ -395,6 +397,7 @@ uint32 Authentication::HandleVerifyAuthToken(std::string_view authToken, std::fu
|
|||||||
|
|
||||||
std::array<uint8, 64> k = Trinity::Crypto::GetRandomBytes<64>();
|
std::array<uint8, 64> k = Trinity::Crypto::GetRandomBytes<64>();
|
||||||
logonRecord->set_session_key(k.data(), 64);
|
logonRecord->set_session_key(k.data(), 64);
|
||||||
|
printf("AUTHDBG_LOGON_K_GENERATE %s\n", ByteArrayToHexStr(k).c_str()); fflush(stdout);
|
||||||
|
|
||||||
Service<authentication::v2::client::AuthenticationListener>(session).OnLogonComplete(&logonResult);
|
Service<authentication::v2::client::AuthenticationListener>(session).OnLogonComplete(&logonResult);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user