From 5338d133b3ab44afac1a3ee052bd0155fcf69c19 Mon Sep 17 00:00:00 2001 From: Alex Ionescu Date: Wed, 5 Jul 2006 06:43:46 +0000 Subject: [PATCH] [AUDIT] - Almost all the functions are stubs, except for some LSA functions which merely seem to be wrappers that build LPC messages for the actual LSA Server to implement (which isn't part of these files). - Add some stubs during my attempt to load Google Talk (forget about it!). However WINE implements all these functions entirely so maybe we should just sync with them? svn path=/trunk/; revision=22858 --- reactos/dll/win32/secur32/secur32.def | 18 +++--- reactos/dll/win32/secur32/sspi.c | 93 +++++++++++++++++++++++++++ 2 files changed, 102 insertions(+), 9 deletions(-) diff --git a/reactos/dll/win32/secur32/secur32.def b/reactos/dll/win32/secur32/secur32.def index 9619abf7f8e..d0fd207d6ba 100644 --- a/reactos/dll/win32/secur32/secur32.def +++ b/reactos/dll/win32/secur32/secur32.def @@ -9,26 +9,26 @@ LsaFreeReturnBuffer@4 LsaCallAuthenticationPackage@28 ;AcceptSecurityContext@36 AcquireCredentialsHandleA@36 -;AcquireCredentialsHandleW@36 +AcquireCredentialsHandleW@36 ;@AddCredentialsA ;@AddCredentialsW ;@AddSecurityPackageA ;@AddSecurityPackageW ;ApplyControlTokenA@8 -;ApplyControlTokenW@8 -;CompleteAuthToken@8 +ApplyControlToken@8=ApplyControlTokenW@8 +CompleteAuthToken@8 ;@CredMarshalTargetInfo ;@CredUnmarshalTargetInfo -;DecryptMessage@16 -;DeleteSecurityContext@4 +DecryptMessage@16 +DeleteSecurityContext@4 ;@DeleteSecurityPackageA ;@DeleteSecurityPackageW -;EncryptMessage@16 +EncryptMessage@16 EnumerateSecurityPackagesA@8 EnumerateSecurityPackagesW@8 ;@ExportSecurityContext FreeContextBuffer@4 -;FreeCredentialsHandle@4 +FreeCredentialsHandle@4 GetComputerObjectNameA@12 GetComputerObjectNameW@12 ;GetSecurityUserInfo @@ -38,7 +38,7 @@ GetUserNameExW@12 ;@ImportSecurityContextA ;@ImportSecurityContextW ;@InitSecurityInterfaceA -;@InitSecurityInterfaceW +InitSecurityInterfaceW@0 InitializeSecurityContextA@48 ;InitializeSecurityContextW@48 LsaEnumerateLogonSessions@8 @@ -47,7 +47,7 @@ LsaRegisterPolicyChangeNotification@8 LsaUnregisterPolicyChangeNotification@8 ;MakeSignature@16 ;QueryContextAttributesA@12 -;QueryContextAttributesW@12 +QueryContextAttributesW@12 ;QueryCredentialsAttributesA@12 ;QueryCredentialsAttributesW@12 ;@QuerySecurityContextToken diff --git a/reactos/dll/win32/secur32/sspi.c b/reactos/dll/win32/secur32/sspi.c index 8d234dbca21..5c0f3d3d175 100644 --- a/reactos/dll/win32/secur32/sspi.c +++ b/reactos/dll/win32/secur32/sspi.c @@ -36,6 +36,80 @@ FreeContextBuffer ( return ERROR_CALL_NOT_IMPLEMENTED; } +SECURITY_STATUS +WINAPI +FreeCredentialsHandle(PCredHandle Handle) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + +SECURITY_STATUS +WINAPI +DeleteSecurityContext(PCtxtHandle Handle) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + +PSecurityFunctionTableW +WINAPI +InitSecurityInterfaceW(VOID) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return NULL; +} + +SECURITY_STATUS +WINAPI +EncryptMessage(PCtxtHandle Handle, + ULONG Foo, + PSecBufferDesc Buffer, + ULONG Bar) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + +SECURITY_STATUS +WINAPI +DecryptMessage(PCtxtHandle Handle, + PSecBufferDesc Buffer, + ULONG Foo, + PULONG Bar) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + +SECURITY_STATUS +WINAPI +ApplyControlTokenW(PCtxtHandle Handle, + PSecBufferDesc Buffer) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + +SECURITY_STATUS +WINAPI +CompleteAuthToken(PCtxtHandle Handle, + PSecBufferDesc Buffer) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + +SECURITY_STATUS +WINAPI +QueryContextAttributesW(PCtxtHandle Handle, + ULONG Foo, + PVOID Bar) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + SECURITY_STATUS WINAPI AcquireCredentialsHandleA ( @@ -54,6 +128,25 @@ AcquireCredentialsHandleA ( return ERROR_CALL_NOT_IMPLEMENTED; } +SECURITY_STATUS +WINAPI +AcquireCredentialsHandleW ( + SEC_WCHAR* pszPrincipal, + SEC_WCHAR* pszPackage, + ULONG fUsage, + PLUID pID, + PVOID pAuth, + SEC_GET_KEY_FN pGetKeyFn, + PVOID pvGetKeyArgument, + PCredHandle phCred, + PTimeStamp pExpires + ) +{ + DPRINT1("%s() not implemented!\n", __FUNCTION__); + return ERROR_CALL_NOT_IMPLEMENTED; +} + + SECURITY_STATUS WINAPI InitializeSecurityContextA (