Leaked source code of windows server 2003
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.

73 lines
1.9 KiB

  1. //
  2. // Microsoft Windows
  3. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  4. //
  5. // File: HCContxt.h
  6. //
  7. // Contents: Functions that are used to pack and unpack different messages
  8. //
  9. // Classes:
  10. //
  11. // Functions:
  12. //
  13. // History: 12-22-97 v-sbhatt Created
  14. //
  15. //----------------------------------------------------------------------------
  16. typedef struct _License_Client_Context
  17. {
  18. DWORD dwProtocolVersion; // Version of licensing protocol
  19. DWORD dwState; // State at which the connection is in
  20. DWORD dwContextFlags;
  21. PCryptSystem pCryptParam;
  22. UCHAR rgbMACData[LICENSE_MAC_DATA];
  23. DWORD cbLastMessage;
  24. BYTE FAR * pbLastMessage;
  25. PHydra_Server_Cert pServerCert; // used only for preamble version older than 3.0
  26. DWORD cbServerPubKey; // used for preamble version 3.0 and later.
  27. BYTE FAR * pbServerPubKey;
  28. }License_Client_Context, *PLicense_Client_Context;
  29. PLicense_Client_Context
  30. LicenseCreateContext(
  31. VOID );
  32. LICENSE_STATUS CALL_TYPE
  33. LicenseDeleteContext(
  34. HANDLE hContext
  35. );
  36. LICENSE_STATUS CALL_TYPE
  37. LicenseInitializeContext(
  38. HANDLE * phContext,
  39. DWORD dwFlags );
  40. LICENSE_STATUS CALL_TYPE
  41. LicenseSetPublicKey(
  42. HANDLE hContext,
  43. DWORD cbPubKey,
  44. BYTE FAR * pbPubKey );
  45. LICENSE_STATUS CALL_TYPE
  46. LicenseSetCertificate(
  47. HANDLE hContext,
  48. PHydra_Server_Cert pCertificate );
  49. LICENSE_STATUS CALL_TYPE
  50. LicenseAcceptContext(
  51. HANDLE hContext,
  52. UINT32 * puiExtendedErrorInfo,
  53. BYTE FAR * pbInput,
  54. DWORD cbInput,
  55. BYTE FAR * pbOutput,
  56. DWORD FAR * pcbOutput );