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.

69 lines
1.7 KiB

  1. /*++ BUILD Version: 0009 // Increment this if a change has global effects
  2. Copyright (c) 1987-1993 Microsoft Corporation
  3. Module Name:
  4. smbcxchng.h
  5. Abstract:
  6. This is the include file that defines all constants and types for
  7. SMB exchange implementation.
  8. Author:
  9. Balan Sethu Raman (SethuR) 06-Feb-95 Created
  10. --*/
  11. #ifndef _KERBXCHG_H_
  12. #define _KERBXCHG_H_
  13. #include <smbxchng.h>
  14. #include "security.h"
  15. #define IsCredentialHandleValid(pCredHandle) \
  16. (((pCredHandle)->dwLower != 0xffffffff) && ((pCredHandle)->dwUpper != 0xffffffff))
  17. #define IsSecurityContextHandleValid(pContextHandle) \
  18. (((pContextHandle)->dwLower != 0xffffffff) && ((pContextHandle)->dwUpper != 0xffffffff))
  19. typedef struct _SMBCE_KERBEROS_SESSION_ {
  20. SMBCE_SESSION;
  21. PCHAR pServerResponseBlob;
  22. ULONG ServerResponseBlobLength;
  23. } SMBCE_KERBEROS_SESSION, *PSMBCE_KERBEROS_SESSION;
  24. typedef struct _SMB_KERBEROS_SESSION_SETUP_EXCHANGE {
  25. SMB_EXCHANGE;
  26. PVOID pBuffer;
  27. PMDL pBufferAsMdl;
  28. ULONG BufferLength;
  29. ULONG ResponseLength;
  30. PVOID pServerResponseBlob;
  31. ULONG ServerResponseBlobOffset;
  32. ULONG ServerResponseBlobLength;
  33. PSMBCE_RESUMPTION_CONTEXT pResumptionContext;
  34. } SMB_KERBEROS_SESSION_SETUP_EXCHANGE, *PSMB_KERBEROS_SESSION_SETUP_EXCHANGE;
  35. #ifdef _CAIRO_
  36. extern NTSTATUS
  37. KerberosValidateServerResponse(PSMB_KERBEROS_SESSION_SETUP_EXCHANGE pExchange);
  38. #else
  39. #define KerberosValidateServerResponse(pExchange) (STATUS_NOT_IMPLEMENTED)
  40. #endif
  41. extern SMB_EXCHANGE_DISPATCH_VECTOR
  42. KerberosSessionSetupExchangeDispatch;
  43. #endif // _KERBXCHG_H_
  44.