Source code of Windows XP (NT5)
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.

89 lines
1.8 KiB

  1. //+--------------------------------------------------------------------------
  2. //
  3. // Copyright (c) 1997-1999 Microsoft Corporation
  4. //
  5. // File: gencert.h
  6. //
  7. // Contents:
  8. //
  9. // History:
  10. //
  11. //---------------------------------------------------------------------------
  12. #ifndef __GEN_CERT_H__
  13. #define __GEN_CERT_H__
  14. #include "server.h"
  15. #ifdef __cplusplus
  16. extern "C" {
  17. #endif
  18. BOOL
  19. TLSEncryptBase64EncodeHWID(
  20. PHWID pHwid,
  21. DWORD* cbBase64EncodeHwid,
  22. PBYTE* szBase64EncodeHwid
  23. );
  24. DWORD
  25. TLSExportPublicKey(
  26. IN HCRYPTPROV hCryptProv,
  27. IN DWORD dwKeyType,
  28. IN OUT PDWORD pcbByte,
  29. IN OUT PCERT_PUBLIC_KEY_INFO *ppbByte
  30. );
  31. DWORD
  32. TLSCryptEncodeObject(
  33. IN DWORD dwEncodingType,
  34. IN LPCSTR lpszStructType,
  35. IN const void * pvStructInfo,
  36. OUT PBYTE* ppbEncoded,
  37. OUT DWORD* pcbEncoded
  38. );
  39. DWORD
  40. TLSChainProprietyCertificate(
  41. HCRYPTPROV hCryptProv,
  42. BOOL bTemp,
  43. PBYTE pbLicense,
  44. DWORD cbLicense,
  45. PBYTE* pbChained,
  46. DWORD* cbChained
  47. );
  48. DWORD
  49. TLSVerifyProprietyChainedCertificate(
  50. HCRYPTPROV hCryptProv,
  51. PBYTE pbData,
  52. DWORD cbData
  53. );
  54. DWORD
  55. TLSGenerateClientCertificate(
  56. IN HCRYPTPROV hCryptProv,
  57. IN DWORD dwNumLicensedProduct,
  58. IN PTLSDBLICENSEDPRODUCT pLicProduct,
  59. IN WORD wLicenseChainDetail,
  60. OUT PBYTE* ppbEncodedCert,
  61. OUT PDWORD pcbEncodedCert
  62. );
  63. DWORD
  64. TLSCreateSelfSignCertificate(
  65. HCRYPTPROV,
  66. DWORD,
  67. PBYTE,
  68. DWORD,
  69. DWORD,
  70. PCERT_EXTENSION,
  71. PDWORD,
  72. PBYTE*
  73. );
  74. #ifdef __cplusplus
  75. }
  76. #endif
  77. #endif