home *** CD-ROM | disk | FTP | other *** search
/ PC Format (South-Africa) 2001 June / PCFJune.iso / Xenon / C++ / FreeCommandLineTools.exe / Include / security.h < prev    next >
Encoding:
C/C++ Source or Header  |  2000-01-31  |  1.8 KB  |  77 lines

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