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.

57 lines
1.6 KiB

  1. //+---------------------------------------------------------------------------
  2. //
  3. // File: msnssp.h
  4. //
  5. // Contents: MSNSSP specific parameters and characteristics
  6. //
  7. // History: SudK Created 7/13/95
  8. //
  9. //----------------------------------------------------------------------------
  10. #ifndef _MSNSSP_H_
  11. #define _MSNSSP_H_
  12. #define MSNSP_NAME_A "MSN"
  13. #define MSNSP_COMMENT_A "MSN Security Package"
  14. #define MSNSP_NAME_W L"MSN"
  15. #define MSNSP_COMMENT_W L"MSN Security Package"
  16. #ifdef UNICODE
  17. #define MSNSP_NAME MSNSP_NAME_W
  18. #define MSNSP_COMMENT MSNSP_COMMENT_W
  19. #else
  20. #define MSNSP_NAME MSNSP_NAME_A
  21. #define MSNSP_COMMENT MSNSP_COMMENT_A
  22. #endif
  23. //
  24. // The following defines the possible values for the 'Type' field in
  25. // the security context structure on a server or client application.
  26. //
  27. #define MSNSP_CLIENT_CTXT 0
  28. #define MSNSP_SERVER_CTXT 1
  29. typedef ULONG MSNSP_CTXT_TYPE;
  30. #define MSNSP_CAPABILITIES (SECPKG_FLAG_CONNECTION | \
  31. SECPKG_FLAG_MULTI_REQUIRED | \
  32. SECPKG_FLAG_TOKEN_ONLY | \
  33. SECPKG_FLAG_INTEGRITY | \
  34. SECPKG_FLAG_PRIVACY)
  35. #define MSNSP_VERSION 1
  36. #define MSNSP_MAX_TOKEN_SIZE 0x0300
  37. #define MSNSP_RPCID 11 // BUGBUG. What should this be?
  38. #define DUMMY_CREDHANDLE 400 // BUGBUG. This should go eventually
  39. #define SEC_E_PRINCIPAL_UNKNOWN SEC_E_UNKNOWN_CREDENTIALS
  40. #define SEC_E_PACKAGE_UNKNOWN SEC_E_SECPKG_NOT_FOUND
  41. //#define SEC_E_BUFFER_TOO_SMALL SEC_E_INSUFFICIENT_MEMORY
  42. //#define SEC_I_CALLBACK_NEEDED SEC_I_CONTINUE_NEEDED
  43. #define SEC_E_INVALID_CONTEXT_REQ SEC_E_NOT_SUPPORTED
  44. #define SEC_E_INVALID_CREDENTIAL_USE SEC_E_NOT_SUPPORTED
  45. #define SSP_RET_REAUTHENTICATION 0x8000000
  46. #endif