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.

56 lines
1.1 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. // Copyright (C) Microsoft Corporation, 1992 - 1997.
  5. //
  6. // File: userctxt.h
  7. //
  8. // Contents:
  9. //
  10. // Classes:
  11. //
  12. // Functions:
  13. //
  14. // History: 3-26-97 RichardW Created
  15. //
  16. //----------------------------------------------------------------------------
  17. #include <rc4.h>
  18. #ifndef __USERCTXT_H__
  19. #define __USERCTXT_H__
  20. typedef struct _XTCB_USER_CONTEXT {
  21. LIST_ENTRY List ;
  22. LSA_SEC_HANDLE LsaHandle ;
  23. HANDLE Token ;
  24. XTCB_CONTEXT_CORE Context ;
  25. ULONGLONG Align ;
  26. RC4_KEYSTRUCT InboundKey ;
  27. RC4_KEYSTRUCT OutboundKey ;
  28. } XTCB_USER_CONTEXT, *PXTCB_USER_CONTEXT ;
  29. BOOL
  30. XtcbUserContextInit(
  31. VOID
  32. );
  33. SECURITY_STATUS
  34. XtcbAddUserContext(
  35. IN LSA_SEC_HANDLE LsaHandle,
  36. IN PSecBuffer ContextData
  37. );
  38. PXTCB_USER_CONTEXT
  39. XtcbFindUserContext(
  40. IN LSA_SEC_HANDLE LsaHandle
  41. );
  42. VOID
  43. XtcbDeleteUserContext(
  44. IN LSA_SEC_HANDLE LsaHandle
  45. );
  46. #endif