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.0 KiB

  1. #ifndef _SITECRED_HXX_
  2. #define _SITECRED_HXX_
  3. /*++
  4. Copyright (c) 2000 Microsoft Corporation
  5. Module Name :
  6. sitecred.cxx
  7. Abstract:
  8. SChannel site credentials
  9. Author:
  10. Bilal Alam (BAlam) 29-March-2000
  11. Environment:
  12. Win32 - User Mode
  13. Project:
  14. Stream Filter Worker Process
  15. --*/
  16. class SITE_CREDENTIALS
  17. {
  18. public:
  19. SITE_CREDENTIALS();
  20. virtual ~SITE_CREDENTIALS();
  21. HRESULT
  22. AcquireCredentials(
  23. SERVER_CERT * pServerCert,
  24. BOOL fUseDsMapper
  25. );
  26. CredHandle *
  27. QueryCredentials(
  28. VOID
  29. )
  30. {
  31. return &_hCreds;
  32. }
  33. BOOL
  34. QueryIsAvailable(
  35. VOID
  36. )
  37. {
  38. return _fInitCreds;
  39. }
  40. static
  41. HRESULT
  42. Initialize(
  43. VOID
  44. );
  45. static
  46. VOID
  47. Terminate(
  48. VOID
  49. );
  50. private:
  51. CredHandle _hCreds;
  52. BOOL _fInitCreds;
  53. };
  54. #endif