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.

81 lines
2.6 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1991 - 1997
  6. //
  7. // File: KFUNCS.H
  8. //
  9. // Contents: xxxK versions of SSPI functions.
  10. //
  11. //
  12. // History: 15 Dec 97, AdamBa Created
  13. //
  14. //------------------------------------------------------------------------
  15. #ifndef __KFUNCS_H__
  16. #define __KFUNCS_H__
  17. SECURITY_STATUS SEC_ENTRY
  18. AcquireCredentialsHandleK(
  19. PSECURITY_STRING pPrincipal,
  20. PSECURITY_STRING pPackage,
  21. unsigned long fCredentialUse, // Flags indicating use
  22. void SEC_FAR * pvLogonId, // Pointer to logon ID
  23. void SEC_FAR * pAuthData, // Package specific data
  24. SEC_GET_KEY_FN pGetKeyFn, // Pointer to GetKey() func
  25. void SEC_FAR * pvGetKeyArgument, // Value to pass to GetKey()
  26. PCredHandle phCredential, // (out) Cred Handle
  27. PTimeStamp ptsExpiry // (out) Lifetime (optional)
  28. );
  29. SECURITY_STATUS SEC_ENTRY
  30. FreeCredentialsHandleK(
  31. PCredHandle phCredential // Handle to free
  32. );
  33. SECURITY_STATUS SEC_ENTRY
  34. InitializeSecurityContextK(
  35. PCredHandle phCredential, // Cred to base context
  36. PCtxtHandle phContext, // Existing context (OPT)
  37. PSECURITY_STRING pTargetName,
  38. unsigned long fContextReq, // Context Requirements
  39. unsigned long Reserved1, // Reserved, MBZ
  40. unsigned long TargetDataRep, // Data rep of target
  41. PSecBufferDesc pInput, // Input Buffers
  42. unsigned long Reserved2, // Reserved, MBZ
  43. PCtxtHandle phNewContext, // (out) New Context handle
  44. PSecBufferDesc pOutput, // (inout) Output Buffers
  45. unsigned long SEC_FAR * pfContextAttr, // (out) Context attrs
  46. PTimeStamp ptsExpiry // (out) Life span (OPT)
  47. );
  48. SECURITY_STATUS SEC_ENTRY
  49. DeleteSecurityContextK(
  50. PCtxtHandle phContext // Context to delete
  51. );
  52. SECURITY_STATUS SEC_ENTRY
  53. FreeContextBufferK(
  54. void SEC_FAR * pvContextBuffer // buffer to free
  55. );
  56. SECURITY_STATUS SEC_ENTRY
  57. MapSecurityErrorK( SECURITY_STATUS hrValue );
  58. #if 0
  59. SECURITY_STATUS SEC_ENTRY
  60. EnumerateSecurityPackagesK(
  61. unsigned long SEC_FAR * pcPackages, // Receives num. packages
  62. PSecPkgInfoW SEC_FAR * ppPackageInfo // Receives array of info
  63. );
  64. SECURITY_STATUS SEC_ENTRY
  65. QuerySecurityContextTokenK(
  66. PCtxtHandle phContext,
  67. void SEC_FAR * SEC_FAR * Token
  68. );
  69. #endif
  70. #endif // __KFUNCS_H__