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.

70 lines
1.7 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. nllmssp.h
  5. Abstract:
  6. Externally visible definition of the NT Lanman Security Support Provider
  7. (NtLmSsp) Service.
  8. Author:
  9. Cliff Van Dyke (cliffv) 01-Jul-1993
  10. Environment:
  11. User mode only.
  12. Contains NT-specific code.
  13. Requires ANSI C extensions: slash-slash comments, long external names.
  14. Revision History:
  15. Borrowed from the Ciaro's ntlmssp.h by PeterWi.
  16. ChandanS 03-Aug-1996 Stolen from net\svcdlls\ntlmssp\ntlmssp.h
  17. --*/
  18. #ifndef _NTLMSSP_
  19. #define _NTLMSSP_
  20. //
  21. // Defines for SecPkgInfo structure returned by SpGetInfo
  22. //
  23. #define NTLMSP_NAME L"NTLM"
  24. #define NTLMSP_COMMENT L"NTLM Security Package"
  25. #define NTLMSP_CAPS (SECPKG_FLAG_TOKEN_ONLY | \
  26. SECPKG_FLAG_MULTI_REQUIRED | \
  27. SECPKG_FLAG_CONNECTION | \
  28. SECPKG_FLAG_INTEGRITY | \
  29. SECPKG_FLAG_PRIVACY | \
  30. SECPKG_FLAG_IMPERSONATION | \
  31. SECPKG_FLAG_ACCEPT_WIN32_NAME | \
  32. SECPKG_FLAG_NEGOTIABLE | \
  33. SECPKG_FLAG_LOGON )
  34. #define NTLMSP_MAX_TOKEN_SIZE 0x770
  35. #define NTLM_CRED_NULLSESSION SECPKG_CRED_RESERVED
  36. // includes that should go elsewhere.
  37. //
  38. // Move to secscode.h
  39. //
  40. #define SEC_E_PACKAGE_UNKNOWN SEC_E_SECPKG_NOT_FOUND
  41. #define SEC_E_INVALID_CONTEXT_REQ SEC_E_NOT_SUPPORTED
  42. #define SEC_E_INVALID_CREDENTIAL_USE SEC_E_NOT_SUPPORTED
  43. #define SEC_I_CALL_NTLMSSP_SERVICE 0xFFFFFFFF
  44. //
  45. // Could be in sspi.h
  46. //
  47. #define SSP_RET_REAUTHENTICATION 0x8000000
  48. #endif // _NTLMSSP_