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.

85 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. #include <sspi.h>
  14. #define SECPKG_CRED_OWF_PASSWORD 0x00000010
  15. //
  16. // Description of a credential.
  17. //
  18. typedef struct _SSP_CREDENTIAL {
  19. //
  20. // Global list of all Credentials.
  21. //
  22. LIST_ENTRY Next;
  23. //
  24. // Used to prevent this Credential from being deleted prematurely.
  25. //
  26. WORD References;
  27. //
  28. // Flag of how credential may be used.
  29. //
  30. // SECPKG_CRED_* flags
  31. //
  32. ULONG CredentialUseFlags;
  33. PCHAR Username;
  34. PCHAR Domain;
  35. PCHAR Workstation;
  36. #ifdef BL_USE_LM_PASSWORD
  37. PLM_OWF_PASSWORD LmPassword;
  38. #endif
  39. PNT_OWF_PASSWORD NtPassword;
  40. } SSP_CREDENTIAL, *PSSP_CREDENTIAL;
  41. PSSP_CREDENTIAL
  42. SspCredentialAllocateCredential(
  43. IN ULONG CredentialUseFlags
  44. );
  45. PSSP_CREDENTIAL
  46. SspCredentialReferenceCredential(
  47. IN PCredHandle CredentialHandle,
  48. IN BOOLEAN RemoveCredential
  49. );
  50. void
  51. SspCredentialDereferenceCredential(
  52. PSSP_CREDENTIAL Credential
  53. );
  54. #endif // ifndef _NTLMSSP_CRED_INCLUDED_