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.

56 lines
1.3 KiB

  1. //+-------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (C) Microsoft Corporation, 1997 - 1999
  6. //
  7. // File: usecert.h
  8. //
  9. //--------------------------------------------------------------------------
  10. //+------------------------------------------------------------------------
  11. //
  12. // File: usecert.h
  13. //
  14. // Contents: Header file for certificate store and file operations
  15. //
  16. // History: 10/97 xtan Created
  17. //
  18. //-------------------------------------------------------------------------
  19. #ifndef __USECERT_H__
  20. #define __USECERT_H__
  21. HRESULT
  22. DetermineExistingCAIdInfo(
  23. IN OUT CASERVERSETUPINFO *pServer,
  24. OPTIONAL IN CERT_CONTEXT const *pUpgradeCert);
  25. HRESULT
  26. FindCertificateByKey(
  27. IN CASERVERSETUPINFO * pServer,
  28. OUT CERT_CONTEXT const ** ppccCertificateCtx);
  29. HRESULT
  30. SetExistingCertToUse(
  31. IN CASERVERSETUPINFO * pServer,
  32. IN CERT_CONTEXT const * pccCertCtx);
  33. void
  34. ClearExistingCertToUse(
  35. IN CASERVERSETUPINFO * pServer);
  36. HRESULT
  37. FindHashAlgorithm(
  38. IN CERT_CONTEXT const * pccCert,
  39. IN CSP_INFO * pCSPInfo,
  40. OUT CSP_HASH ** ppHash);
  41. HRESULT
  42. IsCertSelfSignedForCAType(
  43. IN CASERVERSETUPINFO * pServer,
  44. IN CERT_CONTEXT const * pccCert,
  45. OUT BOOL * pbOK);
  46. #endif // #ifndef __USECERT_H__