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.

72 lines
2.6 KiB

  1. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  2. Microsoft Windows, Copyright (C) Microsoft Corporation, 2000 - 2001.
  3. File: Policy.h
  4. Content: Declaration of the policy callback functions.
  5. History: 09-07-2001 dsie created
  6. ------------------------------------------------------------------------------*/
  7. #ifndef __POLICY_H_
  8. #define __POLICY_H_
  9. #include "Debug.h"
  10. ////////////////////
  11. //
  12. // typedefs
  13. //
  14. typedef BOOL (WINAPI * PFNCHAINFILTERPROC)
  15. (PCCERT_CHAIN_CONTEXT pChainContext,
  16. BOOL * pfInitialSelectedChain,
  17. LPVOID pvCallbackData);
  18. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  19. Function : FindDataSigningCertCallback
  20. Synopsis : Callback routine for data signing certs filtering.
  21. Parameter: See CryptUI.h for defination.
  22. Remark : Filter out any cert that is not time valid or has no associated
  23. private key. In the future we should also consider filtering out
  24. certs that do not have signing capability.
  25. Also, note that we are not building chain here, since chain
  26. building is costly, and thus present poor user's experience.
  27. ------------------------------------------------------------------------------*/
  28. BOOL WINAPI FindDataSigningCertCallback (PCCERT_CONTEXT pCertContext,
  29. BOOL * pfInitialSelectedCert,
  30. void * pvCallbackData);
  31. /*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
  32. Function : FindAuthenticodeCertCallback
  33. Synopsis : Callback routine for Authenticode certs filtering.
  34. Parameter: See CryptUI.h for defination.
  35. Remark : Filter out any cert that is not time valid, has no associated
  36. private key, or code signing OID.
  37. Also, note that we are not building chain here, since chain
  38. building is costly, and thus present poor user's experience.
  39. Instead, we will build the chain and check validity of the cert
  40. selected (see GetSignerCert function).
  41. ------------------------------------------------------------------------------*/
  42. BOOL WINAPI FindAuthenticodeCertCallback (PCCERT_CONTEXT pCertContext,
  43. BOOL * pfInitialSelectedCert,
  44. void * pvCallbackData);
  45. #endif //__POLICY_H_