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.

106 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1987-1997 Microsoft Corporation
  3. Module Name:
  4. arapsuba.h
  5. Abstract:
  6. This is the header file for the subauthenticaion module
  7. Author:
  8. Shirish Koti 28-Feb-97
  9. Revisions:
  10. --*/
  11. #define CLEAR_TEXT_PWD_PACKAGE L"CLEARTEXT"
  12. #if DBG
  13. #define DBGPRINT DbgPrint
  14. #else
  15. #define DBGPRINT
  16. #endif
  17. extern CRITICAL_SECTION ArapDesLock;
  18. extern const NT_OWF_PASSWORD EMPTY_OWF_PASSWORD;
  19. BOOL
  20. RasSfmSubAuthEntry(
  21. IN HANDLE hinstDll,
  22. IN DWORD fdwReason,
  23. IN LPVOID lpReserved
  24. );
  25. NTSTATUS
  26. ArapSubAuthentication(
  27. IN OUT PNETLOGON_NETWORK_INFO pLogonNetworkInfo,
  28. IN PUSER_ALL_INFORMATION UserAll,
  29. IN SAM_HANDLE UserHandle,
  30. IN OUT PMSV1_0_VALIDATION_INFO ValidationInfo
  31. );
  32. NTSTATUS
  33. ArapChangePassword(
  34. IN OUT PRAS_SUBAUTH_INFO pRasSubAuthInfo,
  35. OUT PULONG ReturnBufferLength,
  36. OUT PVOID *ReturnBuffer
  37. );
  38. NTSTATUS
  39. ArapGetSamHandle(
  40. IN PVOID *pUserHandle,
  41. IN PUNICODE_STRING pUserName
  42. );
  43. VOID
  44. DoTheDESEncrypt(
  45. IN OUT PCHAR ChallengeBuf
  46. );
  47. VOID
  48. DoTheDESDecrypt(
  49. IN OUT PCHAR ChallengeBuf
  50. );
  51. VOID
  52. DoDesInit(
  53. IN PCHAR pClrTxtPwd,
  54. IN BOOLEAN DropHighBit
  55. );
  56. VOID
  57. DoDesEnd(
  58. IN VOID
  59. );
  60. NTSTATUS
  61. NTAPI
  62. MD5ChapSubAuthentication(
  63. IN SAM_HANDLE UserHandle,
  64. IN PUSER_ALL_INFORMATION UserAll,
  65. IN PRAS_SUBAUTH_INFO RasInfo
  66. );
  67. NTSTATUS
  68. NTAPI
  69. MD5ChapExSubAuthentication(
  70. IN SAM_HANDLE UserHandle,
  71. IN PUSER_ALL_INFORMATION UserAll,
  72. IN PRAS_SUBAUTH_INFO RasInfo
  73. );