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.

118 lines
3.8 KiB

  1. //========= Copyright � 1996-2005, Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. // $NoKeywords: $
  6. //
  7. //=============================================================================//
  8. /*******************************************************************************
  9. **
  10. ** Contents:
  11. **
  12. ** This file provides the public interface to the Steam service. This
  13. ** interface is described in the SDK documentation.
  14. **
  15. ******************************************************************************/
  16. #ifndef INCLUDED_STEAMUSERIDVALIDATION_H
  17. #define INCLUDED_STEAMUSERIDVALIDATION_H
  18. #if defined(_MSC_VER) && (_MSC_VER > 1000)
  19. #pragma once
  20. #endif
  21. #ifndef INCLUDED_STEAM2_USERID_STRUCTS
  22. #include "SteamCommon.h"
  23. #endif
  24. #ifdef __cplusplus
  25. extern "C"
  26. {
  27. #endif
  28. /*
  29. ** User ID
  30. */
  31. /* Client calls this (see also ValidateNewValveCDKeyClient.h if appropriate) */
  32. STEAM_API ESteamError STEAM_CALL SteamGetEncryptedUserIDTicket
  33. (
  34. const void * pEncryptionKeyReceivedFromAppServer,
  35. unsigned int uEncryptionKeyLength,
  36. void * pOutputBuffer,
  37. unsigned int uSizeOfOutputBuffer,
  38. unsigned int * pReceiveSizeOfEncryptedTicket,
  39. TSteamError * pReceiveErrorCode
  40. );
  41. /* Game/Application server calls these */
  42. STEAM_API ESteamError STEAM_CALL SteamInitializeUserIDTicketValidator
  43. (
  44. const char * pszOptionalPublicEncryptionKeyFilename,
  45. const char * pszOptionalPrivateDecryptionKeyFilename,
  46. unsigned int ClientClockSkewToleranceInSeconds,
  47. unsigned int ServerClockSkewToleranceInSeconds,
  48. unsigned int MaxNumLoginsWithinClientClockSkewTolerancePerClient,
  49. unsigned int HintPeakSimultaneousValidations,
  50. unsigned int AbortValidationAfterStallingForNProcessSteps
  51. );
  52. STEAM_API ESteamError STEAM_CALL SteamShutdownUserIDTicketValidator();
  53. STEAM_API const char * STEAM_CALL SteamGetEncryptionKeyToSendToNewClient
  54. (
  55. unsigned int * pReceiveSizeOfEncryptionKey
  56. );
  57. STEAM_API ESteamError STEAM_CALL SteamStartValidatingUserIDTicket
  58. (
  59. void * pEncryptedUserIDTicketFromClient,
  60. unsigned int uSizeOfEncryptedUserIDTicketFromClient,
  61. unsigned int ObservedClientIPAddr,
  62. SteamUserIDTicketValidationHandle_t * pReceiveHandle
  63. );
  64. STEAM_API ESteamError STEAM_CALL SteamStartValidatingNewValveCDKey
  65. (
  66. void * pEncryptedNewValveCDKeyFromClient,
  67. unsigned int uSizeOfEncryptedNewValveCDKeyFromClient,
  68. unsigned int ObservedClientIPAddr,
  69. struct sockaddr * pPrimaryValidateNewCDKeyServerSockAddr,
  70. struct sockaddr * pSecondaryValidateNewCDKeyServerSockAddr,
  71. SteamUserIDTicketValidationHandle_t * pReceiveHandle
  72. );
  73. STEAM_API ESteamError STEAM_CALL SteamProcessOngoingUserIDTicketValidation
  74. (
  75. SteamUserIDTicketValidationHandle_t Handle,
  76. TSteamGlobalUserID * pReceiveValidSteamGlobalUserID,
  77. unsigned int * pReceiveClientLocalIPAddr,
  78. unsigned char * pOptionalReceiveProofOfAuthenticationToken,
  79. size_t SizeOfOptionalAreaToReceiveProofOfAuthenticationToken,
  80. size_t * pOptionalReceiveSizeOfProofOfAuthenticationToken
  81. );
  82. STEAM_API void STEAM_CALL SteamAbortOngoingUserIDTicketValidation
  83. (
  84. SteamUserIDTicketValidationHandle_t Handle
  85. );
  86. STEAM_API ESteamError STEAM_CALL SteamOptionalCleanUpAfterClientHasDisconnected
  87. (
  88. unsigned int ObservedClientIPAddr,
  89. unsigned int ClientLocalIPAddr
  90. );
  91. #ifdef __cplusplus
  92. }
  93. #endif
  94. #endif /* #ifndef INCLUDED_STEAM2_USERID_STRUCTS */