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.

103 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 2001 Microsoft Corporation
  3. Module Name:
  4. sspi.hxx
  5. Abstract:
  6. sspi
  7. Author:
  8. Larry Zhu (LZhu) January 1, 2002
  9. Environment:
  10. User Mode
  11. Revision History:
  12. --*/
  13. #ifndef SSPI_HXX
  14. #define SSPI_HXX
  15. extern "C"
  16. {
  17. void
  18. SspiMain(
  19. void
  20. );
  21. NTSTATUS
  22. IsContinueNeeded(
  23. IN NTSTATUS ntstatus,
  24. OUT BOOLEAN* pbIsContinueNeeded
  25. );
  26. NTSTATUS
  27. GetSecurityContextHandles(
  28. IN OPTIONAL UNICODE_STRING* pTargetName,
  29. IN ULONG ClientFlags,
  30. IN ULONG ServerFlags,
  31. IN ULONG ClientTargetDataRep,
  32. IN ULONG ServerTargetDataRep,
  33. IN PCredHandle phClientCred,
  34. IN PCredHandle phServerCred,
  35. OUT PCtxtHandle phClientCtxt,
  36. OUT PCtxtHandle phServerCtxt
  37. );
  38. NTSTATUS
  39. GetCredHandle(
  40. IN OPTIONAL UNICODE_STRING* pPrincipal,
  41. IN OPTIONAL LUID* pLogonID,
  42. IN UNICODE_STRING* pPackage,
  43. IN OPTIONAL VOID* pAuthData,
  44. IN ULONG fCredentialUse,
  45. OUT CredHandle* phCred
  46. );
  47. VOID
  48. PrintLogonSessionData(
  49. IN ULONG Level,
  50. IN SECURITY_LOGON_SESSION_DATA* pLogonSessionData
  51. );
  52. NTSTATUS
  53. CheckUserToken(
  54. IN HANDLE hToken
  55. );
  56. NTSTATUS
  57. CheckUserData(
  58. VOID
  59. );
  60. NTSTATUS
  61. CheckSecurityContextHandle(
  62. IN PCtxtHandle phCtxt
  63. );
  64. PCTSTR
  65. LogonType2Str(
  66. IN ULONG LogonType
  67. );
  68. PCTSTR
  69. ImpLevel2Str(
  70. IN ULONG Level
  71. );
  72. NTSTATUS
  73. DoMessages(
  74. IN PCtxtHandle phServerCtxt,
  75. IN PCtxtHandle phClientCtxt
  76. );
  77. }
  78. #endif // #ifndef SSPI_HXX