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.

50 lines
1.1 KiB

  1. ///////////////////////////////////////////////////////////////////////////////
  2. //
  3. // Copyright (c) 1998, Microsoft Corp. All rights reserved.
  4. //
  5. // FILE
  6. //
  7. // md5port.h
  8. //
  9. // SYNOPSIS
  10. //
  11. // Declares the NT4/NT5 portability layer for MD5-CHAP support. These
  12. // routines are the only ones whose implementation varies across the
  13. // platforms.
  14. //
  15. // MODIFICATION HISTORY
  16. //
  17. // 10/14/1998 Original version.
  18. //
  19. ///////////////////////////////////////////////////////////////////////////////
  20. #ifndef _MD5PORT_H_
  21. #define _MD5PORT_H_
  22. #if _MSC_VER >= 1000
  23. #pragma once
  24. #endif
  25. //////////
  26. // Determines whether reversibly encrypted passwords are enabled for the
  27. // specified user.
  28. //////////
  29. NTSTATUS
  30. NTAPI
  31. IsCleartextEnabled(
  32. IN SAMPR_HANDLE UserHandle,
  33. OUT PBOOL Enabled
  34. );
  35. //////////
  36. // Retrieves the user's cleartext password. The returned password should be
  37. // freed through RtlFreeUnicodeString.
  38. //////////
  39. NTSTATUS
  40. NTAPI
  41. RetrieveCleartextPassword(
  42. IN SAM_HANDLE UserHandle,
  43. IN PUSER_ALL_INFORMATION UserAll,
  44. OUT PUNICODE_STRING Password
  45. );
  46. #endif // _MD5PORT_H_