ReactOS 0.4.15-dev-7958-gcd0bb1a
user.c
Go to the documentation of this file.
1/*
2 * PROJECT: Authentication Package DLL
3 * LICENSE: GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4 * PURPOSE: NTLM Functions returned from SpUserModeInitialize (PSECPKG_USER_FUNCTION_TABLE)
5 * COPYRIGHT: Copyright 2019-2020 Andreas Maier <staubim@quantentunnel.de>
6 */
7
8#include "precomp.h"
9
10#include "wine/debug.h"
12
18 _Inout_ PVOID *UserFunctions)
19{
20 TRACE("SpInstanceInit(Version 0x%lx, 0x%p, 0x%p)\n",
21 Version, FunctionTable, UserFunctions);
23}
24
28 _In_ LSA_SEC_HANDLE ContextHandle,
29 _In_ ULONG QualityOfProtection,
30 _Inout_ PSecBufferDesc MessageBuffers,
31 _In_ ULONG MessageSequenceNumber)
32{
33 TRACE("UsrSpMakeSignature(0x%p 0x%x 0x%p 0x%x)\n",
34 ContextHandle, QualityOfProtection,
35 MessageBuffers, MessageSequenceNumber);
37}
38
42 _In_ LSA_SEC_HANDLE phContext,
43 _In_ PSecBufferDesc pMessage,
44 _In_ ULONG MessageSeqNo,
45 _In_ PULONG pfQOP)
46{
47 TRACE("UsrSpVerifySignature(0x%p 0x%x 0x%x 0x%p)\n",
48 phContext, pMessage, MessageSeqNo, pfQOP);
49
51}
52
56 _In_ LSA_SEC_HANDLE ContextHandle,
57 _In_ ULONG QualityOfProtection,
58 _Inout_ PSecBufferDesc MessageBuffers,
59 _In_ ULONG MessageSequenceNumber)
60{
61 TRACE("UsrSpSealMessage(0x%p 0x%x 0x%p 0x%x)\n",
62 ContextHandle, QualityOfProtection,
63 MessageBuffers, MessageSequenceNumber);
65}
66
70 _In_ LSA_SEC_HANDLE ContextHandle,
71 _Inout_ PSecBufferDesc MessageBuffers,
72 _In_ ULONG MessageSequenceNumber,
73 _In_ PULONG QualityOfProtection)
74{
75 TRACE("UsrSpUnsealMessage(0x%p 0x%x 0x%p 0x%x)\n",
76 ContextHandle, MessageBuffers,
77 MessageSequenceNumber, QualityOfProtection);
79}
80
84 _In_ LSA_SEC_HANDLE ContextHandle,
85 _Inout_ PHANDLE ImpersonationToken)
86{
87 TRACE("UsrSpGetContextToken(0x%p 0x%p)\n",
88 ContextHandle, ImpersonationToken);
90}
91
95 _In_ LSA_SEC_HANDLE ContextHandle,
96 _In_ ULONG ContextAttribute,
98{
99 TRACE("UsrSpQueryContextAttributes(0x%p 0x%x 0x%p)\n",
100 ContextHandle, ContextAttribute, Buffer);
102}
103
105NTAPI
107 _In_ LSA_SEC_HANDLE ContextHandle,
109{
110 TRACE("UsrSpCompleteAuthToken(0x%p 0x%p)\n",
111 ContextHandle, InputBuffer);
113}
114
116NTAPI
118 _In_ LSA_SEC_HANDLE ContextHandle)
119{
120 TRACE("UsrSpDeleteUserModeContext(0x%p)\n",
121 ContextHandle);
123}
124
126NTAPI
128 _In_ PSecBuffer Credentials,
129 _Inout_ PSecBuffer FormattedCredentials)
130{
131 TRACE("UsrSpFormatCredentials(0x%p 0x%p)\n",
132 Credentials, FormattedCredentials);
133
134 return ERROR_NOT_SUPPORTED;
135}
136
138NTAPI
140 _In_ ULONG CredentialSize,
141 _In_ PUCHAR Credentials,
142 _Inout_ PULONG MarshalledCredSize,
143 _Inout_ PVOID *MarshalledCreds)
144{
145 TRACE("UsrSpMarshallSupplementalCreds(0x%x 0x%p 0x%p 0x%p)\n",
146 CredentialSize, Credentials, MarshalledCredSize, MarshalledCreds);
147
148 return ERROR_NOT_SUPPORTED;
149}
150
152NTAPI
154 _In_ LSA_SEC_HANDLE phContext,
155 _In_ ULONG fFlags,
156 _Inout_ PSecBuffer pPackedContext,
157 _Inout_ PHANDLE pToken)
158{
159 TRACE("UsrSpExportSecurityContext(0x%p 0x%x 0x%p 0x%p)\n",
160 phContext, fFlags, pPackedContext, pToken);
161
162 return ERROR_NOT_SUPPORTED;
163}
164
166NTAPI
168 _In_ PSecBuffer pPackedContext,
170 _Inout_ PLSA_SEC_HANDLE phContext)
171{
172 TRACE("UsrSpImportSecurityContext(0x%p 0x%x 0x%p)\n",
173 pPackedContext, Token, phContext);
174
175 return ERROR_NOT_SUPPORTED;
176}
#define WINE_DEFAULT_DEBUG_CHANNEL(t)
Definition: precomp.h:23
LONG NTSTATUS
Definition: precomp.h:26
Definition: bufpool.h:45
#define ERROR_NOT_SUPPORTED
Definition: compat.h:100
NTSTATUS NTAPI UsrSpDeleteUserModeContext(_In_ LSA_SEC_HANDLE ContextHandle)
Definition: user.c:117
NTSTATUS NTAPI SpInstanceInit(_In_ ULONG Version, _In_ PSECPKG_DLL_FUNCTIONS FunctionTable, _Inout_ PVOID *UserFunctions)
Definition: user.c:15
NTSTATUS NTAPI UsrSpGetContextToken(_In_ LSA_SEC_HANDLE ContextHandle, _Inout_ PHANDLE ImpersonationToken)
Definition: user.c:83
NTSTATUS NTAPI UsrSpCompleteAuthToken(_In_ LSA_SEC_HANDLE ContextHandle, _In_ PSecBufferDesc InputBuffer)
Definition: user.c:106
NTSTATUS NTAPI UsrSpFormatCredentials(_In_ PSecBuffer Credentials, _Inout_ PSecBuffer FormattedCredentials)
Definition: user.c:127
NTSTATUS NTAPI UsrSpVerifySignature(_In_ LSA_SEC_HANDLE phContext, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo, _In_ PULONG pfQOP)
Definition: user.c:41
NTSTATUS NTAPI UsrSpQueryContextAttributes(_In_ LSA_SEC_HANDLE ContextHandle, _In_ ULONG ContextAttribute, _Inout_ PVOID Buffer)
Definition: user.c:94
NTSTATUS NTAPI UsrSpMakeSignature(_In_ LSA_SEC_HANDLE ContextHandle, _In_ ULONG QualityOfProtection, _Inout_ PSecBufferDesc MessageBuffers, _In_ ULONG MessageSequenceNumber)
Definition: user.c:27
NTSTATUS NTAPI UsrSpImportSecurityContext(_In_ PSecBuffer pPackedContext, _In_ HANDLE Token, _Inout_ PLSA_SEC_HANDLE phContext)
Definition: user.c:167
NTSTATUS NTAPI UsrSpUnsealMessage(_In_ LSA_SEC_HANDLE ContextHandle, _Inout_ PSecBufferDesc MessageBuffers, _In_ ULONG MessageSequenceNumber, _In_ PULONG QualityOfProtection)
Definition: user.c:69
NTSTATUS NTAPI UsrSpMarshallSupplementalCreds(_In_ ULONG CredentialSize, _In_ PUCHAR Credentials, _Inout_ PULONG MarshalledCredSize, _Inout_ PVOID *MarshalledCreds)
Definition: user.c:139
NTSTATUS NTAPI UsrSpSealMessage(_In_ LSA_SEC_HANDLE ContextHandle, _In_ ULONG QualityOfProtection, _Inout_ PSecBufferDesc MessageBuffers, _In_ ULONG MessageSequenceNumber)
Definition: user.c:55
NTSTATUS NTAPI UsrSpExportSecurityContext(_In_ LSA_SEC_HANDLE phContext, _In_ ULONG fFlags, _Inout_ PSecBuffer pPackedContext, _Inout_ PHANDLE pToken)
Definition: user.c:153
#define _Inout_
Definition: ms_sal.h:378
#define _In_
Definition: ms_sal.h:308
ULONG LSA_SEC_HANDLE
Definition: ntsecpkg.h:208
ULONG * PLSA_SEC_HANDLE
Definition: ntsecpkg.h:208
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:455
PVOID *typedef PSecBuffer
Definition: ntsecpkg.h:440
#define STATUS_NOT_IMPLEMENTED
Definition: ntstatus.h:239
#define TRACE(s)
Definition: solgame.cpp:4
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
unsigned char * PUCHAR
Definition: typedefs.h:53
uint32_t ULONG
Definition: typedefs.h:59
_Must_inspect_result_ _In_ WDFDEVICE _In_ LPCGUID _Out_ PINTERFACE _In_ USHORT _In_ USHORT Version
Definition: wdffdo.h:469
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:953
static WLX_DISPATCH_VERSION_1_4 FunctionTable
Definition: wlx.c:722