Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
1.7 KiB

  1. //========= Copyright � 1996-2010, Valve LLC, All rights reserved. ============
  2. //
  3. // Purpose: utilities to decode/decrypt a ticket from the
  4. // ISteamUser::RequestEncryptedAppTicket, ISteamUser::GetEncryptedAppTicket API
  5. //
  6. // To use: declare CSteamEncryptedAppTicket, then call BDecryptTicket
  7. // if BDecryptTicket returns true, other accessors are valid
  8. //
  9. //=============================================================================
  10. #include "steam_api.h"
  11. static const int k_nSteamEncryptedAppTicketSymmetricKeyLen = 32;
  12. S_API bool SteamEncryptedAppTicket_BDecryptTicket( const uint8 *rgubTicketEncrypted, uint32 cubTicketEncrypted,
  13. uint8 *rgubTicketDecrypted, uint32 *pcubTicketDecrypted,
  14. const uint8 rgubKey[k_nSteamEncryptedAppTicketSymmetricKeyLen], int cubKey );
  15. S_API bool SteamEncryptedAppTicket_BIsTicketForApp( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted, AppId_t nAppID );
  16. S_API RTime32 SteamEncryptedAppTicket_GetTicketIssueTime( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted );
  17. S_API void SteamEncryptedAppTicket_GetTicketSteamID( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted, CSteamID *psteamID );
  18. S_API AppId_t SteamEncryptedAppTicket_GetTicketAppID( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted );
  19. S_API bool SteamEncryptedAppTicket_BUserOwnsAppInTicket( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted, AppId_t nAppID );
  20. S_API bool SteamEncryptedAppTicket_BUserIsVacBanned( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted );
  21. S_API const uint8 *SteamEncryptedAppTicket_GetUserVariableData( uint8 *rgubTicketDecrypted, uint32 cubTicketDecrypted, uint32 *pcubUserData );