[KSECDD] Improve GetSecurityUserInfo stub (#2438)

- Fix UNIMPLEMENTED_DBGBREAK seen using FileMon
- Add SAL2 Annotations and remove unneeded comments
- Return NULL pointer

CORE-15186
This commit is contained in:
Doug Lyons 2020-04-15 17:32:47 -05:00 committed by GitHub
parent d90e1061e1
commit cb10698316
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 4 deletions

View file

@ -12,7 +12,7 @@
@ stdcall FreeCredentialsHandle(ptr) @ stdcall FreeCredentialsHandle(ptr)
@ stdcall GenerateDirEfs() @ stdcall GenerateDirEfs()
@ stdcall GenerateSessionKey() @ stdcall GenerateSessionKey()
@ stdcall GetSecurityUserInfo() @ stdcall GetSecurityUserInfo(ptr long ptr)
@ stdcall ImpersonateSecurityContext(ptr) @ stdcall ImpersonateSecurityContext(ptr)
@ stdcall ImportSecurityContextW(ptr ptr ptr ptr) @ stdcall ImportSecurityContextW(ptr ptr ptr ptr)
@ stdcall InitSecurityInterfaceW() @ stdcall InitSecurityInterfaceW()

View file

@ -13,6 +13,7 @@
#define NDEBUG #define NDEBUG
#include <debug.h> #include <debug.h>
typedef PVOID PSECURITY_PACKAGE_OPTIONS, PSecurityUserData;
/* FUNCTIONS ******************************************************************/ /* FUNCTIONS ******************************************************************/
@ -160,11 +161,16 @@ GenerateSessionKey(VOID)
UNIMPLEMENTED_DBGBREAK(); UNIMPLEMENTED_DBGBREAK();
} }
VOID SECURITY_STATUS
SEC_ENTRY SEC_ENTRY
GetSecurityUserInfo(VOID) GetSecurityUserInfo(
_In_opt_ PLUID LogonId,
_In_ ULONG Flags,
_Outptr_ PSecurityUserData *UserInformation)
{ {
UNIMPLEMENTED_DBGBREAK(); UNIMPLEMENTED;
*UserInformation = NULL;
return STATUS_UNSUCCESSFUL;
} }
SECURITY_STATUS SECURITY_STATUS