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.

69 lines
1.5 KiB

  1. /*++
  2. Copyright (c) 1993 Microsoft Corporation
  3. Module Name:
  4. ntlmssp.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. Requires ANSI C extensions: slash-slash comments, long external names.
  13. Revision History:
  14. Borrowed from the Cairo's ntlmssp.h by PeterWi.
  15. --*/
  16. #ifndef _NTLMSSP_
  17. #define _NTLMSSP_
  18. #include <security.h>
  19. #include <spseal.h>
  20. //
  21. // Defines for SecPkgInfo structure returned by QuerySecurityPackageInfo
  22. //
  23. #undef NTLMSP_NAME
  24. #define NTLMSP_NAME "NTLM"
  25. #define NTLMSP_COMMENT "NTLM Security Package"
  26. #define NTLMSP_CAPABILITIES (SECPKG_FLAG_TOKEN_ONLY | \
  27. SECPKG_FLAG_INTEGRITY | \
  28. SECPKG_FLAG_PRIVACY | \
  29. SECPKG_FLAG_MULTI_REQUIRED | \
  30. SECPKG_FLAG_CONNECTION)
  31. #define NTLMSP_VERSION 1
  32. #define NTLMSP_MAX_TOKEN_SIZE 0x300
  33. // includes that should go elsewhere.
  34. //
  35. // Move to secscode.h
  36. //
  37. #define SEC_E_PRINCIPAL_UNKNOWN SEC_E_UNKNOWN_CREDENTIALS
  38. #define SEC_E_PACKAGE_UNKNOWN SEC_E_SECPKG_NOT_FOUND
  39. #define SEC_E_BUFFER_TOO_SMALL SEC_E_INSUFFICIENT_MEMORY
  40. #define SEC_I_CALLBACK_NEEDED SEC_I_CONTINUE_NEEDED
  41. #define SEC_E_INVALID_CONTEXT_REQ SEC_E_NOT_SUPPORTED
  42. #define SEC_E_INVALID_CREDENTIAL_USE SEC_E_NOT_SUPPORTED
  43. //
  44. // Move to security.h
  45. //
  46. #endif // _NTLMSSP_