X-Git-Url: https://harrygodden.com/git/?a=blobdiff_plain;f=vg_steam_auth.h;fp=vg_steam_auth.h;h=fcdc8ae56f7d1b7908f01ac92bd4049dff416374;hb=81c1746e8550682b581548e262660271b5d4d6dd;hp=7d4002bd55cc8e55fc452223a488c3471489bbfa;hpb=ffd724233b7a3cb89d0d5d253ba4c475d87c76e2;p=vg.git diff --git a/vg_steam_auth.h b/vg_steam_auth.h index 7d4002b..fcdc8ae 100644 --- a/vg_steam_auth.h +++ b/vg_steam_auth.h @@ -53,10 +53,12 @@ HAuthTicket SteamAPI_ISteamUser_GetAuthSessionTicket( SteamAPICall_t SteamAPI_ISteamUser_RequestEncryptedAppTicket( ISteamUser *self, void *pDataToInclude, int cbDataToInclude ); -int SteamAPI_ISteamUser_GetEncryptedAppTicket( +steamapi_bool SteamAPI_ISteamUser_GetEncryptedAppTicket( ISteamUser *self, void *pTicket, int cbMaxTicket, u32 *pcbTicket ); +u64_steamid SteamAPI_ISteamUser_GetSteamID( ISteamUser *self ); + /* * Application symetric-key ticket method (Server) @@ -64,13 +66,13 @@ int SteamAPI_ISteamUser_GetEncryptedAppTicket( enum { k_nSteamEncryptedAppTicketSymmetricKeyLen = 32 }; -int SteamEncryptedAppTicket_BDecryptTicket( u8 *rgubTicketEncrypted, +steamapi_bool SteamEncryptedAppTicket_BDecryptTicket( u8 *rgubTicketEncrypted, u32 cubTicketEncrypted, u8 *rgubTicketDecrypted, u32 *pcubTicketDecrypted, u8 rgubKey[k_nSteamEncryptedAppTicketSymmetricKeyLen], int cubKey ); -int SteamEncryptedAppTicket_BIsTicketForApp( u8 *rgubTicketDecrypted, +steamapi_bool SteamEncryptedAppTicket_BIsTicketForApp( u8 *rgubTicketDecrypted, u32 cubTicketDecrypted, AppId_t nAppID ); RTime32 SteamEncryptedAppTicket_GetTicketIssueTime( u8 *rgubTicketDecrypted, @@ -82,26 +84,26 @@ void SteamEncryptedAppTicket_GetTicketSteamID( AppId_t SteamEncryptedAppTicket_GetTicketAppID( u8 *rgubTicketDecrypted, u32 cubTicketDecrypted ); -int SteamEncryptedAppTicket_BUserOwnsAppInTicket( u8 *rgubTicketDecrypted, - u32 cubTicketDecrypted, AppId_t nAppID ); +steamapi_bool SteamEncryptedAppTicket_BUserOwnsAppInTicket( + u8 *rgubTicketDecrypted, u32 cubTicketDecrypted, AppId_t nAppID ); -int SteamEncryptedAppTicket_BUserIsVacBanned( u8 *rgubTicketDecrypted, - u32 cubTicketDecrypted ); +steamapi_bool SteamEncryptedAppTicket_BUserIsVacBanned( + u8 *rgubTicketDecrypted, u32 cubTicketDecrypted ); -int SteamEncryptedAppTicket_BGetAppDefinedValue( u8 *rgubTicketDecrypted, - u32 cubTicketDecrypted, u32 *pValue ); +steamapi_bool SteamEncryptedAppTicket_BGetAppDefinedValue( + u8 *rgubTicketDecrypted, u32 cubTicketDecrypted, u32 *pValue ); u8 *SteamEncryptedAppTicket_GetUserVariableData( u8 *rgubTicketDecrypted, u32 cubTicketDecrypted, u32 *pcubUserData ); -int SteamEncryptedAppTicket_BIsTicketSigned( u8 *rgubTicketDecrypted, +steamapi_bool SteamEncryptedAppTicket_BIsTicketSigned( u8 *rgubTicketDecrypted, u32 cubTicketDecrypted, u8 *pubRSAKey, u32 cubRSAKey ); -int SteamEncryptedAppTicket_BIsLicenseBorrowed( u8 *rgubTicketDecrypted, - u32 cubTicketDecrypted ); +steamapi_bool SteamEncryptedAppTicket_BIsLicenseBorrowed( + u8 *rgubTicketDecrypted, u32 cubTicketDecrypted ); -int SteamEncryptedAppTicket_BIsLicenseTemporary( u8 *rgubTicketDecrypted, - u32 cubTicketDecrypted ); +steamapi_bool SteamEncryptedAppTicket_BIsLicenseTemporary( + u8 *rgubTicketDecrypted, u32 cubTicketDecrypted ); static u8 vg_char_base16( char c ) {