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.

60 lines
1.6 KiB

  1. /////////////////////////////////////////////////////////////////////////////
  2. // FILE : sgccheck.h //
  3. // DESCRIPTION : include file //
  4. // AUTHOR : //
  5. // HISTORY : //
  6. // Jun 23 1998 jeffspel Created //
  7. // //
  8. // Copyright (C) 1998 Microsoft Corporation All Rights Reserved //
  9. /////////////////////////////////////////////////////////////////////////////
  10. #ifndef __SGCCHECK_H__
  11. #define __SGCCHECK_H__
  12. #ifdef __cplusplus
  13. extern "C" {
  14. #endif
  15. extern DWORD
  16. LoadSGCRoots(
  17. IN CRITICAL_SECTION *pCritSec); // must be initialized
  18. //
  19. // delete the public key values
  20. //
  21. void SGCDeletePubKeyValues(
  22. IN OUT BYTE **ppbKeyMod,
  23. IN OUT DWORD *pcbKeyMod,
  24. IN OUT DWORD *pdwKeyExpo
  25. );
  26. //
  27. // get the public key form the cert context and assign it to the
  28. // passed in parameters
  29. //
  30. extern DWORD
  31. SGCAssignPubKey(
  32. IN PCCERT_CONTEXT pCertContext,
  33. IN OUT BYTE **ppbKeyMod,
  34. IN OUT DWORD *pcbKeyMod,
  35. IN OUT DWORD *pdwKeyExpo);
  36. //
  37. // check if the context may be SGC enabled
  38. //
  39. extern DWORD
  40. SPQueryCFLevel(
  41. IN PCCERT_CONTEXT pCertContext,
  42. IN BYTE *pbExchKeyMod,
  43. IN DWORD cbExchKeyMod,
  44. IN DWORD dwExchKeyExpo,
  45. OUT DWORD *pdwSGCFlags);
  46. #ifdef __cplusplus
  47. }
  48. #endif
  49. #endif // __SGCCHECK_H__