Author: dchapyshev
Date: Tue Dec 30 02:06:39 2008
New Revision: 38462
URL:
http://svn.reactos.org/svn/reactos?rev=38462&view=rev
Log:
- Implement InitSecurityInterfaceA/W
Modified:
trunk/reactos/dll/win32/secur32/sspi.c
Modified: trunk/reactos/dll/win32/secur32/sspi.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/secur32/sspi.c?r…
==============================================================================
--- trunk/reactos/dll/win32/secur32/sspi.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/secur32/sspi.c [iso-8859-1] Tue Dec 30 02:06:39 2008
@@ -3,6 +3,72 @@
#define NDEBUG
#include <debug.h>
+SECURITY_STATUS WINAPI ApplyControlTokenW(PCtxtHandle Handle, PSecBufferDesc Buffer);
+SECURITY_STATUS WINAPI ApplyControlTokenA(PCtxtHandle Handle, PSecBufferDesc Buffer);
+
+static SecurityFunctionTableA securityFunctionTableA =
+{
+ SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION,
+ EnumerateSecurityPackagesA,
+ QueryCredentialsAttributesA,
+ AcquireCredentialsHandleA,
+ FreeCredentialsHandle,
+ NULL, /* Reserved2 */
+ InitializeSecurityContextA,
+ AcceptSecurityContext,
+ CompleteAuthToken,
+ DeleteSecurityContext,
+ ApplyControlTokenA,
+ QueryContextAttributesA,
+ ImpersonateSecurityContext,
+ RevertSecurityContext,
+ MakeSignature,
+ VerifySignature,
+ FreeContextBuffer,
+ QuerySecurityPackageInfoA,
+ EncryptMessage, /* Reserved3 */
+ DecryptMessage, /* Reserved4 */
+ ExportSecurityContext,
+ ImportSecurityContextA,
+ AddCredentialsA,
+ NULL, /* Reserved8 */
+ QuerySecurityContextToken,
+ EncryptMessage,
+ DecryptMessage,
+ NULL
+};
+
+static SecurityFunctionTableW securityFunctionTableW =
+{
+ SECURITY_SUPPORT_PROVIDER_INTERFACE_VERSION,
+ EnumerateSecurityPackagesW,
+ QueryCredentialsAttributesW,
+ AcquireCredentialsHandleW,
+ FreeCredentialsHandle,
+ NULL, /* Reserved2 */
+ InitializeSecurityContextW,
+ AcceptSecurityContext,
+ CompleteAuthToken,
+ DeleteSecurityContext,
+ ApplyControlTokenW,
+ QueryContextAttributesW,
+ ImpersonateSecurityContext,
+ RevertSecurityContext,
+ MakeSignature,
+ VerifySignature,
+ FreeContextBuffer,
+ QuerySecurityPackageInfoW,
+ EncryptMessage, /* Reserved3 */
+ DecryptMessage, /* Reserved4 */
+ ExportSecurityContext,
+ ImportSecurityContextW,
+ AddCredentialsW,
+ NULL, /* Reserved8 */
+ QuerySecurityContextToken,
+ EncryptMessage,
+ DecryptMessage,
+ NULL
+};
SECURITY_STATUS
WINAPI
@@ -56,8 +122,8 @@
WINAPI
InitSecurityInterfaceW(VOID)
{
- UNIMPLEMENTED;
- return NULL;
+ DPRINT("InitSecurityInterfaceW() called\n");
+ return &securityFunctionTableW;
}
SECURITY_STATUS
@@ -407,8 +473,8 @@
WINAPI
InitSecurityInterfaceA(VOID)
{
- UNIMPLEMENTED;
- return NULL;
+ DPRINT("InitSecurityInterfaceA() called\n");
+ return &securityFunctionTableA;
}
BOOLEAN