ReactOS  0.4.15-dev-4857-g47842d7
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 
14 NTAPI
18  _Inout_ PVOID *UserFunctions)
19 {
20  TRACE("SpInstanceInit(Version 0x%lx, 0x%p, 0x%p)\n",
21  Version, FunctionTable, UserFunctions);
23 }
24 
26 NTAPI
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 
40 NTAPI
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 
50  return ERROR_NOT_SUPPORTED;
51 }
52 
54 NTAPI
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 
68 NTAPI
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 
82 NTAPI
84  _In_ LSA_SEC_HANDLE ContextHandle,
85  _Inout_ PHANDLE ImpersonationToken)
86 {
87  TRACE("UsrSpGetContextToken(0x%p 0x%p)\n",
88  ContextHandle, ImpersonationToken);
90 }
91 
93 NTAPI
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);
101  return STATUS_NOT_IMPLEMENTED;
102 }
103 
104 NTSTATUS
105 NTAPI
107  _In_ LSA_SEC_HANDLE ContextHandle,
109 {
110  TRACE("UsrSpCompleteAuthToken(0x%p 0x%p)\n",
111  ContextHandle, InputBuffer);
112  return STATUS_NOT_IMPLEMENTED;
113 }
114 
115 NTSTATUS
116 NTAPI
118  _In_ LSA_SEC_HANDLE ContextHandle)
119 {
120  TRACE("UsrSpDeleteUserModeContext(0x%p)\n",
121  ContextHandle);
122  return STATUS_NOT_IMPLEMENTED;
123 }
124 
125 NTSTATUS
126 NTAPI
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 
137 NTSTATUS
138 NTAPI
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 
151 NTSTATUS
152 NTAPI
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 
165 NTSTATUS
166 NTAPI
168  _In_ PSecBuffer pPackedContext,
169  _In_ HANDLE Token,
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 }
NTSTATUS NTAPI UsrSpCompleteAuthToken(_In_ LSA_SEC_HANDLE ContextHandle, _In_ PSecBufferDesc InputBuffer)
Definition: user.c:106
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
NTSTATUS NTAPI UsrSpDeleteUserModeContext(_In_ LSA_SEC_HANDLE ContextHandle)
Definition: user.c:117
unsigned char * PUCHAR
Definition: retypes.h:3
NTSTATUS NTAPI UsrSpMarshallSupplementalCreds(_In_ ULONG CredentialSize, _In_ PUCHAR Credentials, _Inout_ PULONG MarshalledCredSize, _Inout_ PVOID *MarshalledCreds)
Definition: user.c:139
NTSTATUS NTAPI SpInstanceInit(_In_ ULONG Version, _In_ PSECPKG_DLL_FUNCTIONS FunctionTable, _Inout_ PVOID *UserFunctions)
Definition: user.c:15
LONG NTSTATUS
Definition: precomp.h:26
_IRQL_requires_same_ _In_ PLSA_STRING _In_ SECURITY_LOGON_TYPE _In_ ULONG _In_ ULONG _In_opt_ PTOKEN_GROUPS _In_ PTOKEN_SOURCE _Out_ PVOID _Out_ PULONG _Inout_ PLUID _Out_ PHANDLE Token
NTSTATUS NTAPI UsrSpVerifySignature(_In_ LSA_SEC_HANDLE phContext, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo, _In_ PULONG pfQOP)
Definition: user.c:41
return STATUS_NOT_IMPLEMENTED
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
#define _In_
Definition: ms_sal.h:308
NTSTATUS NTAPI UsrSpMakeSignature(_In_ LSA_SEC_HANDLE ContextHandle, _In_ ULONG QualityOfProtection, _Inout_ PSecBufferDesc MessageBuffers, _In_ ULONG MessageSequenceNumber)
Definition: user.c:27
NTSTATUS NTAPI UsrSpFormatCredentials(_In_ PSecBuffer Credentials, _Inout_ PSecBuffer FormattedCredentials)
Definition: user.c:127
Definition: bufpool.h:45
_Must_inspect_result_ _In_ WDFIOTARGET _In_opt_ WDFREQUEST _In_opt_ PWDF_MEMORY_DESCRIPTOR InputBuffer
Definition: wdfiotarget.h:949
#define TRACE(s)
Definition: solgame.cpp:4
PVOID *typedef PSecBuffer
Definition: ntsecpkg.h:440
NTSTATUS NTAPI UsrSpSealMessage(_In_ LSA_SEC_HANDLE ContextHandle, _In_ ULONG QualityOfProtection, _Inout_ PSecBufferDesc MessageBuffers, _In_ ULONG MessageSequenceNumber)
Definition: user.c:55
IN PVOID IN PVOID IN USHORT Version
Definition: pci.h:361
PVOID *typedef PHANDLE
Definition: ntsecpkg.h:454
NTSTATUS NTAPI UsrSpUnsealMessage(_In_ LSA_SEC_HANDLE ContextHandle, _Inout_ PSecBufferDesc MessageBuffers, _In_ ULONG MessageSequenceNumber, _In_ PULONG QualityOfProtection)
Definition: user.c:69
NTSTATUS NTAPI UsrSpGetContextToken(_In_ LSA_SEC_HANDLE ContextHandle, _Inout_ PHANDLE ImpersonationToken)
Definition: user.c:83
ULONG * PLSA_SEC_HANDLE
Definition: ntsecpkg.h:208
ULONG LSA_SEC_HANDLE
Definition: ntsecpkg.h:208
unsigned int * PULONG
Definition: retypes.h:1
NTSTATUS NTAPI UsrSpQueryContextAttributes(_In_ LSA_SEC_HANDLE ContextHandle, _In_ ULONG ContextAttribute, _Inout_ PVOID Buffer)
Definition: user.c:94
#define ERROR_NOT_SUPPORTED
Definition: compat.h:100
unsigned int ULONG
Definition: retypes.h:1
static WLX_DISPATCH_VERSION_1_4 FunctionTable
Definition: wlx.c:722
NTSTATUS NTAPI UsrSpImportSecurityContext(_In_ PSecBuffer pPackedContext, _In_ HANDLE Token, _Inout_ PLSA_SEC_HANDLE phContext)
Definition: user.c:167
WINE_DEFAULT_DEBUG_CHANNEL(msv1_0)