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.

82 lines
1.3 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. cred.h
  5. Abstract:
  6. SSP Credential.
  7. Author:
  8. Cliff Van Dyke (CliffV) 17-Sep-1993
  9. Revision History:
  10. --*/
  11. #ifndef _NTLMSSP_CRED_INCLUDED_
  12. #define _NTLMSSP_CRED_INCLUDED_
  13. #define SECPKG_CRED_OWF_PASSWORD 0x00000010
  14. //
  15. // Description of a credential.
  16. //
  17. typedef struct _SSP_CREDENTIAL {
  18. //
  19. // Global list of all Credentials.
  20. //
  21. LIST_ENTRY Next;
  22. //
  23. // Used to prevent this Credential from being deleted prematurely.
  24. //
  25. WORD References;
  26. //
  27. // Flag of how credential may be used.
  28. //
  29. // SECPKG_CRED_* flags
  30. //
  31. ULONG CredentialUseFlags;
  32. PCHAR Username;
  33. PCHAR Domain;
  34. PCHAR Workstation;
  35. #ifdef BL_USE_LM_PASSWORD
  36. PLM_OWF_PASSWORD LmPassword;
  37. #endif
  38. PNT_OWF_PASSWORD NtPassword;
  39. } SSP_CREDENTIAL, *PSSP_CREDENTIAL;
  40. PSSP_CREDENTIAL
  41. SspCredentialAllocateCredential(
  42. IN ULONG CredentialUseFlags
  43. );
  44. PSSP_CREDENTIAL
  45. SspCredentialReferenceCredential(
  46. IN PCredHandle CredentialHandle,
  47. IN BOOLEAN RemoveCredential
  48. );
  49. void
  50. SspCredentialDereferenceCredential(
  51. PSSP_CREDENTIAL Credential
  52. );
  53. #endif // ifndef _NTLMSSP_CRED_INCLUDED_