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.

50 lines
1.1 KiB

  1. /*++
  2. Copyright (C) 1997-2001 Microsoft Corporation
  3. Module Name:
  4. SECHELP.H
  5. Abstract:
  6. Security Helper functions
  7. History:
  8. raymcc 29-Apr-97 Created
  9. --*/
  10. #ifndef _SECHELP_H_
  11. #define _SECHELP_H_
  12. #include "corepol.h"
  13. class WBEMSecurityHelp
  14. {
  15. public:
  16. enum { NoError, InvalidParameter, Failed };
  17. static int ComputeMD5(
  18. LPBYTE pSrcBuffer,
  19. int nArrayLength,
  20. LPBYTE *pMD5Digest // Use operator delete to deallocate
  21. );
  22. // Returns one of the enum values
  23. static int MakeWBEMAccessTokenFromMD5(
  24. LPBYTE pNonce, // Points to a 16-byte nonce
  25. LPBYTE pPasswordDigest, // MD5 of the password
  26. LPBYTE *pAccessToken // Use operator delete to deallocate
  27. );
  28. static int MakeWBEMAccessToken(
  29. LPBYTE pNonce, // Points to a 16-byte nonce
  30. LPWSTR pszPassword, // Can be NULL, blank, or anything normal7
  31. LPBYTE *pAccessToken // Use operator delete to deallocate
  32. );
  33. // Returns one of the enum values
  34. };
  35. #endif