Source code of Windows XP (NT5)
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.

71 lines
2.0 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1992 - 1996
  6. //
  7. // File: logonapi.h
  8. //
  9. // Contents: Prototypes and structures for Logon support in Kerberos
  10. //
  11. //
  12. // History: 19-April-1996 Created MikeSw
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __LOGONAPI_H__
  16. #define __LOGONAPI_H__
  17. NTSTATUS
  18. KerbGetAuthenticationTicket(
  19. IN OUT PKERB_LOGON_SESSION LogonSession,
  20. IN OPTIONAL PKERB_CREDENTIAL Credential,
  21. IN OPTIONAL PKERB_CREDMAN_CRED CredManCredentials,
  22. IN PKERB_INTERNAL_NAME ServiceName,
  23. IN PUNICODE_STRING ServerRealm,
  24. IN PKERB_INTERNAL_NAME ClientFullName,
  25. IN ULONG TicketFlags,
  26. IN ULONG CacheFlags,
  27. OUT OPTIONAL PKERB_TICKET_CACHE_ENTRY * TicketCacheEntry,
  28. OUT OPTIONAL PKERB_ENCRYPTION_KEY CredentialKey,
  29. OUT PUNICODE_STRING CorrectRealm
  30. );
  31. #define KERB_GET_TICKET_NO_PAC 0x00000001
  32. #define KERB_GET_AUTH_TICKET_NO_CANONICALIZE 0x00000002
  33. #define KERB_CLIENT_REFERRAL_MAX 3
  34. NTSTATUS
  35. KerbGetTicketGrantingTicket(
  36. IN OUT PKERB_LOGON_SESSION LogonSession,
  37. IN OPTIONAL PKERB_CREDENTIAL Credential,
  38. IN OPTIONAL PKERB_CREDMAN_CRED CredManCredentials,
  39. IN OPTIONAL PUNICODE_STRING SuppRealm,
  40. OUT OPTIONAL PKERB_TICKET_CACHE_ENTRY * TicketCacheEntry,
  41. OUT OPTIONAL PKERB_ENCRYPTION_KEY CredentialKey
  42. );
  43. BOOLEAN
  44. KerbPurgeServiceTicketAndTgt(
  45. IN PKERB_CONTEXT Context,
  46. IN OPTIONAL LSA_SEC_HANDLE CredentialHandle,
  47. IN OPTIONAL PKERB_CREDMAN_CRED CredManHandle
  48. );
  49. NTSTATUS
  50. KerbGetClientNameAndRealm(
  51. IN OPTIONAL LUID *pLogonId,
  52. IN PKERB_PRIMARY_CREDENTIAL PrimaryCreds,
  53. IN BOOLEAN UsingSuppliedCreds,
  54. IN OPTIONAL PUNICODE_STRING SuppRealm,
  55. IN OUT OPTIONAL BOOLEAN * MitRealmUsed,
  56. IN BOOLEAN UseWkstaRealm,
  57. OUT PKERB_INTERNAL_NAME * ClientName,
  58. OUT PUNICODE_STRING ClientRealm
  59. );
  60. #endif __LOGONAPI_H__