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.

52 lines
1.9 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1992 - 1996
  6. //
  7. // File: krnlapi.h
  8. //
  9. // Contents: Structures and prototypes for kernel mode Kerberos functions
  10. //
  11. //
  12. // History: 3-May-1996 Created MikeSw
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __KRNLAPI_H__
  16. #define __KRNLAPI_H__
  17. typedef unsigned char BYTE, *PBYTE;
  18. #define USERAPI_ALLOCATE
  19. #include "..\client2\userapi.h"
  20. #define KERB_SAFE_SALT 15
  21. #define KERB_SIGNATURE_SIZE 10
  22. #define KERBEROS_CAPABILITIES ( SECPKG_FLAG_INTEGRITY | \
  23. SECPKG_FLAG_PRIVACY | \
  24. SECPKG_FLAG_TOKEN_ONLY | \
  25. SECPKG_FLAG_DATAGRAM | \
  26. SECPKG_FLAG_CONNECTION | \
  27. SECPKG_FLAG_MULTI_REQUIRED | \
  28. SECPKG_FLAG_EXTENDED_ERROR | \
  29. SECPKG_FLAG_IMPERSONATION | \
  30. SECPKG_FLAG_ACCEPT_WIN32_NAME | \
  31. SECPKG_FLAG_NEGOTIABLE | \
  32. SECPKG_FLAG_GSS_COMPATIBLE | \
  33. SECPKG_FLAG_LOGON | \
  34. SECPKG_FLAG_MUTUAL_AUTH | \
  35. SECPKG_FLAG_DELEGATION )
  36. #define KERBEROS_MAX_TOKEN 12000
  37. #define KERBEROS_PACKAGE_NAME L"Kerberos"
  38. #define KERBEROS_PACKAGE_COMMENT L"Microsoft Kerberos V1.0"
  39. #define KERB_PARAMETER_PATH L"\\Registry\\Machine\\System\\CurrentControlSet\\Control\\Lsa\\Kerberos\\Parameters"
  40. #define KERB_PARAMETER_MAX_TOKEN_SIZE L"MaxTokenSize"
  41. #define KERBEROS_RPCID 0x10 // RPC_C_AUTHN_GSS_KERBEROS
  42. #endif // __KRNLAPI_H__