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.

74 lines
1.7 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991-1999
  6. //
  7. // File: Security.h
  8. //
  9. // Contents: Toplevel include file for security aware components
  10. //
  11. //
  12. // History: 06 Aug 92 RichardW Created
  13. // 23 Sep 92 PeterWi Add security object include files
  14. //
  15. //------------------------------------------------------------------------
  16. #if _MSC_VER > 1000
  17. #pragma once
  18. #endif
  19. // This file will go out and pull in all the header files that you need,
  20. // based on defines that you issue. The following macros are used.
  21. //
  22. // SECURITY_KERNEL Use the kernel interface, not the usermode
  23. //
  24. //
  25. // These are name that can be used to refer to the builtin packages
  26. //
  27. #ifndef NTLMSP_NAME_A
  28. #define NTLMSP_NAME_A "NTLM"
  29. #define NTLMSP_NAME L"NTLM" // ntifs
  30. #endif // NTLMSP_NAME
  31. #ifndef MICROSOFT_KERBEROS_NAME_A
  32. #define MICROSOFT_KERBEROS_NAME_A "Kerberos"
  33. #define MICROSOFT_KERBEROS_NAME_W L"Kerberos"
  34. #ifdef WIN32_CHICAGO
  35. #define MICROSOFT_KERBEROS_NAME MICROSOFT_KERBEROS_NAME_A
  36. #else
  37. #define MICROSOFT_KERBEROS_NAME MICROSOFT_KERBEROS_NAME_W
  38. #endif
  39. #endif // MICROSOFT_KERBEROS_NAME_A
  40. #ifndef NEGOSSP_NAME
  41. #define NEGOSSP_NAME_W L"Negotiate"
  42. #define NEGOSSP_NAME_A "Negotiate"
  43. #ifdef UNICODE
  44. #define NEGOSSP_NAME NEGOSSP_NAME_W
  45. #else
  46. #define NEGOSSP_NAME NEGOSSP_NAME_A
  47. #endif
  48. #endif // NEGOSSP_NAME
  49. //
  50. // Include the master SSPI header file
  51. //
  52. #include <sspi.h>
  53. #if defined(SECURITY_WIN32) || defined(SECURITY_KERNEL)
  54. #include <secext.h>
  55. #endif
  56. //
  57. // Include the error codes:
  58. //
  59. #if ISSP_LEVEL == 16
  60. #include <issper16.h>
  61. #endif