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.

41 lines
1.1 KiB

  1. #ifndef _WIN_SIC_CTXT_H_
  2. #define _WIN_SIC_CTXT_H_
  3. #define DEFAULT_SERVER_NAME_LEN 128
  4. typedef struct _WINCONTEXT {
  5. //
  6. // Buffer for storing exchange blob returned by SSPI before
  7. // PreAuthenticateUser is called
  8. //
  9. char *szOutBuffer;
  10. DWORD cbOutBuffer; // bytes associated with allocated szOutBuffer
  11. DWORD dwOutBufferLength;
  12. char *szInBuffer;
  13. DWORD cbInBuffer; // bytes associated with allocated szInBuffer
  14. PCHAR pInBuffer;
  15. DWORD dwInBufferLength;
  16. DWORD dwCallId;
  17. DWORD pkgId;
  18. CredHandle Credential; // SSPI credential handle for this connection
  19. PCredHandle pCredential;
  20. //
  21. // The SSPI Context Handle is stored here
  22. //
  23. CtxtHandle SspContextHandle;
  24. PCtxtHandle pSspContextHandle; // before any ctxt is created, this is NULL
  25. LPSTR lpszServerName;
  26. char szServerName[DEFAULT_SERVER_NAME_LEN];
  27. } WINCONTEXT, *PWINCONTEXT;
  28. #endif // _WIN_SIC_CTXT_H_