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.

114 lines
3.2 KiB

  1. //+-----------------------------------------------------------------------
  2. //
  3. // Microsoft Windows
  4. //
  5. // Copyright (c) Microsoft Corporation 1992 - 1996
  6. //
  7. // File: proxyapi.cxx
  8. //
  9. // Contents: Code for Proxy support in NtLM
  10. // Main entry points in the dll:
  11. // SpGrantProxy
  12. // SpRevokeProxy
  13. // SpInvokeProxy
  14. // SpRenewProxy
  15. //
  16. //
  17. // History: ChandanS 25-Jul-1996 Stolen from kerberos\client2\proxyapi.cxx
  18. //
  19. //------------------------------------------------------------------------
  20. #include <global.h>
  21. NTSTATUS NTAPI
  22. SpGrantProxy(
  23. IN ULONG_PTR CredentialHandle,
  24. IN OPTIONAL PUNICODE_STRING ProxyName,
  25. IN PROXY_CLASS ProxyClass,
  26. IN OPTIONAL PUNICODE_STRING TargetName,
  27. IN ACCESS_MASK ContainerMask,
  28. IN ACCESS_MASK ObjectMask,
  29. IN PTimeStamp ExpirationTime,
  30. IN PSecBuffer AccessInformation,
  31. OUT PPROXY_REFERENCE ProxyReference
  32. )
  33. {
  34. SspPrint((SSP_API, "Entering SpGrantProxy\n"));
  35. UNREFERENCED_PARAMETER (CredentialHandle);
  36. UNREFERENCED_PARAMETER (ProxyName);
  37. UNREFERENCED_PARAMETER (ProxyClass);
  38. UNREFERENCED_PARAMETER (TargetName);
  39. UNREFERENCED_PARAMETER (ContainerMask);
  40. UNREFERENCED_PARAMETER (ObjectMask);
  41. UNREFERENCED_PARAMETER (ExpirationTime);
  42. UNREFERENCED_PARAMETER (AccessInformation);
  43. UNREFERENCED_PARAMETER (ProxyReference);
  44. SspPrint((SSP_API, "Leaving SpGrantProxy\n"));
  45. return(STATUS_NOT_SUPPORTED);
  46. }
  47. NTSTATUS NTAPI
  48. SpRevokeProxy(
  49. IN ULONG_PTR CredentialHandle,
  50. IN OPTIONAL PPROXY_REFERENCE ProxyReference,
  51. IN OPTIONAL PUNICODE_STRING ProxyName
  52. )
  53. {
  54. SspPrint((SSP_API, "Entering SpRevokeProxy\n"));
  55. UNREFERENCED_PARAMETER (CredentialHandle);
  56. UNREFERENCED_PARAMETER (ProxyReference);
  57. UNREFERENCED_PARAMETER (ProxyName);
  58. SspPrint((SSP_API, "Leaving SpRevokeProxy\n"));
  59. return(STATUS_NOT_SUPPORTED);
  60. }
  61. NTSTATUS NTAPI
  62. SpInvokeProxy(
  63. IN ULONG_PTR CredentialHandle,
  64. IN OPTIONAL PPROXY_REFERENCE ProxyReference,
  65. IN OPTIONAL PUNICODE_STRING ProxyName,
  66. OUT PULONG_PTR ContextHandle,
  67. OUT PLUID LogonId,
  68. OUT PULONG CachedCredentialCount,
  69. OUT PSECPKG_SUPPLEMENTAL_CRED * CachedCredentials,
  70. OUT PSecBuffer ContextData
  71. )
  72. {
  73. SspPrint((SSP_API, "Entering SpInvokeProxy\n"));
  74. UNREFERENCED_PARAMETER (CredentialHandle);
  75. UNREFERENCED_PARAMETER (ProxyReference);
  76. UNREFERENCED_PARAMETER (ProxyName);
  77. UNREFERENCED_PARAMETER (ContextHandle);
  78. UNREFERENCED_PARAMETER (LogonId);
  79. UNREFERENCED_PARAMETER (CachedCredentialCount);
  80. UNREFERENCED_PARAMETER (CachedCredentials);
  81. UNREFERENCED_PARAMETER (ContextData);
  82. SspPrint((SSP_API, "Leaving SpInvokeProxy\n"));
  83. return(STATUS_NOT_SUPPORTED);
  84. }
  85. NTSTATUS NTAPI
  86. SpRenewProxy(
  87. IN ULONG_PTR CredentialHandle,
  88. IN OPTIONAL PPROXY_REFERENCE ProxyReference,
  89. IN OPTIONAL PUNICODE_STRING ProxyName,
  90. IN PTimeStamp ExpirationTime
  91. )
  92. {
  93. SspPrint((SSP_API, "Entering SpRenewProxy\n"));
  94. UNREFERENCED_PARAMETER (CredentialHandle);
  95. UNREFERENCED_PARAMETER (ProxyReference);
  96. UNREFERENCED_PARAMETER (ProxyName);
  97. UNREFERENCED_PARAMETER (ExpirationTime);
  98. SspPrint((SSP_API, "Leaving SpRenewProxy\n"));
  99. return(STATUS_NOT_SUPPORTED);
  100. }