Compare commits

...

2 Commits

Author SHA1 Message Date
Mr_Goldberg a36d6e475d
GetEncryptedAppTicket can be called with cbMaxTicket=0 to get the ticket size. 2020-06-11 12:21:19 -04:00
Mr_Goldberg 48ea1da91f
Add missing steamclient function. 2020-06-11 12:20:31 -04:00
2 changed files with 13 additions and 1 deletions

View File

@ -1158,6 +1158,11 @@ STEAMCLIENT_API void Steam_LogOn( HSteamUser hUser, HSteamPipe hSteamPipe, uint6
PRINT_DEBUG("%s\n", __FUNCTION__);
}
STEAMCLIENT_API void Steam_ReleaseThreadLocalMemory(bool thread_exit)
{
PRINT_DEBUG("%s\n", __FUNCTION__);
}
STEAMCLIENT_API void Steam_ReleaseUser( HSteamPipe hSteamPipe, HSteamUser hUser )
{
PRINT_DEBUG("%s\n", __FUNCTION__);

View File

@ -374,8 +374,15 @@ SteamAPICall_t RequestEncryptedAppTicket( void *pDataToInclude, int cbDataToIncl
bool GetEncryptedAppTicket( void *pTicket, int cbMaxTicket, uint32 *pcbTicket )
{
PRINT_DEBUG("Steam_User::GetEncryptedAppTicket %i\n", cbMaxTicket);
if (!pcbTicket || !pTicket) return false;
if (!pcbTicket) return false;
unsigned int ticket_size = encrypted_app_ticket.size() + 126;
if (!cbMaxTicket) {
*pcbTicket = ticket_size;
return true;
}
if (!pTicket) return false;
//TODO figure out exact sizes?
if (ticket_size < cbMaxTicket) cbMaxTicket = ticket_size;
char ticket_base[] = {0x08, 0x01};