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.

81 lines
1.8 KiB

  1. /*++
  2. Copyright (c) 1989 Microsoft Corporation
  3. Module Name:
  4. mrxsec.h
  5. Abstract:
  6. This module defines functions for interfacing smb security functions with the NT securoty functions
  7. Revision History:
  8. Jim McNelis [JimMcN] 6-September-1995
  9. --*/
  10. #ifndef _MRXSEC_H_
  11. #define _MRXSEC_H_
  12. //
  13. // The local debug trace level
  14. //
  15. #define Dbg (DEBUG_TRACE_DISPATCH)
  16. //
  17. // Forward declarations ...
  18. //
  19. typedef struct _SECURITY_RESPONSE_CONTEXT {
  20. union {
  21. struct {
  22. PVOID pOutputContextBuffer;
  23. } KerberosSetup;
  24. struct {
  25. PVOID pResponseBuffer;
  26. } LanmanSetup;
  27. };
  28. } SECURITY_RESPONSE_CONTEXT,*PSECURITY_RESPONSE_CONTEXT;
  29. extern NTSTATUS
  30. BuildSessionSetupSecurityInformation(
  31. PSMB_EXCHANGE pExchange,
  32. PBYTE pSmbBuffer,
  33. PULONG pSmbBufferSize);
  34. extern NTSTATUS
  35. BuildNtLanmanResponsePrologue(
  36. PSMB_EXCHANGE pExchange,
  37. PUNICODE_STRING pUserName,
  38. PUNICODE_STRING pDomainName,
  39. PSTRING pCaseSensitiveResponse,
  40. PSTRING pCaseInsensitiveResponse,
  41. PSECURITY_RESPONSE_CONTEXT pResponseContext);
  42. extern NTSTATUS
  43. BuildExtendedSessionSetupResponsePrologueFake(
  44. PSMB_EXCHANGE pExchange);
  45. extern NTSTATUS
  46. BuildExtendedSessionSetupResponsePrologue(
  47. PSMB_EXCHANGE pExchange,
  48. PVOID pSecurityBlobPtr,
  49. PUSHORT SecurityBlobSize,
  50. PSECURITY_RESPONSE_CONTEXT pResponseContext);
  51. extern NTSTATUS
  52. BuildNtLanmanResponseEpilogue(
  53. PSMB_EXCHANGE pExchange,
  54. PSECURITY_RESPONSE_CONTEXT pResponseContext);
  55. extern NTSTATUS
  56. BuildExtendedSessionSetupResponseEpilogue(
  57. PSECURITY_RESPONSE_CONTEXT pResponseContext);
  58. #endif // _MRXSEC_H_