xref: /reactos/dll/win32/msv1_0/user.c (revision 0901077f)
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"
11 WINE_DEFAULT_DEBUG_CHANNEL(msv1_0);
12 
13 NTSTATUS
14 NTAPI
SpInstanceInit(_In_ ULONG Version,_In_ PSECPKG_DLL_FUNCTIONS FunctionTable,_Inout_ PVOID * UserFunctions)15 SpInstanceInit(
16     _In_ ULONG Version,
17     _In_ PSECPKG_DLL_FUNCTIONS FunctionTable,
18     _Inout_ PVOID *UserFunctions)
19 {
20     TRACE("SpInstanceInit(Version 0x%lx, 0x%p, 0x%p)\n",
21           Version, FunctionTable, UserFunctions);
22     return STATUS_NOT_IMPLEMENTED;
23 }
24 
25 NTSTATUS
26 NTAPI
UsrSpMakeSignature(_In_ LSA_SEC_HANDLE ContextHandle,_In_ ULONG QualityOfProtection,_Inout_ PSecBufferDesc MessageBuffers,_In_ ULONG MessageSequenceNumber)27 UsrSpMakeSignature(
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);
36     return STATUS_NOT_IMPLEMENTED;
37 }
38 
39 NTSTATUS
40 NTAPI
UsrSpVerifySignature(_In_ LSA_SEC_HANDLE phContext,_In_ PSecBufferDesc pMessage,_In_ ULONG MessageSeqNo,_In_ PULONG pfQOP)41 UsrSpVerifySignature(
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 
53 NTSTATUS
54 NTAPI
UsrSpSealMessage(_In_ LSA_SEC_HANDLE ContextHandle,_In_ ULONG QualityOfProtection,_Inout_ PSecBufferDesc MessageBuffers,_In_ ULONG MessageSequenceNumber)55 UsrSpSealMessage(
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);
64     return STATUS_NOT_IMPLEMENTED;
65 }
66 
67 NTSTATUS
68 NTAPI
UsrSpUnsealMessage(_In_ LSA_SEC_HANDLE ContextHandle,_Inout_ PSecBufferDesc MessageBuffers,_In_ ULONG MessageSequenceNumber,_In_ PULONG QualityOfProtection)69 UsrSpUnsealMessage(
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);
78     return STATUS_NOT_IMPLEMENTED;
79 }
80 
81 NTSTATUS
82 NTAPI
UsrSpGetContextToken(_In_ LSA_SEC_HANDLE ContextHandle,_Inout_ PHANDLE ImpersonationToken)83 UsrSpGetContextToken(
84     _In_ LSA_SEC_HANDLE ContextHandle,
85     _Inout_ PHANDLE ImpersonationToken)
86 {
87     TRACE("UsrSpGetContextToken(0x%p 0x%p)\n",
88           ContextHandle, ImpersonationToken);
89     return STATUS_NOT_IMPLEMENTED;
90 }
91 
92 NTSTATUS
93 NTAPI
UsrSpQueryContextAttributes(_In_ LSA_SEC_HANDLE ContextHandle,_In_ ULONG ContextAttribute,_Inout_ PVOID Buffer)94 UsrSpQueryContextAttributes(
95     _In_ LSA_SEC_HANDLE ContextHandle,
96     _In_ ULONG ContextAttribute,
97     _Inout_ PVOID Buffer)
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
UsrSpCompleteAuthToken(_In_ LSA_SEC_HANDLE ContextHandle,_In_ PSecBufferDesc InputBuffer)106 UsrSpCompleteAuthToken(
107     _In_ LSA_SEC_HANDLE ContextHandle,
108     _In_ PSecBufferDesc InputBuffer)
109 {
110     TRACE("UsrSpCompleteAuthToken(0x%p 0x%p)\n",
111           ContextHandle, InputBuffer);
112     return STATUS_NOT_IMPLEMENTED;
113 }
114 
115 NTSTATUS
116 NTAPI
UsrSpDeleteUserModeContext(_In_ LSA_SEC_HANDLE ContextHandle)117 UsrSpDeleteUserModeContext(
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
UsrSpFormatCredentials(_In_ PSecBuffer Credentials,_Inout_ PSecBuffer FormattedCredentials)127 UsrSpFormatCredentials(
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
UsrSpMarshallSupplementalCreds(_In_ ULONG CredentialSize,_In_ PUCHAR Credentials,_Inout_ PULONG MarshalledCredSize,_Inout_ PVOID * MarshalledCreds)139 UsrSpMarshallSupplementalCreds(
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
UsrSpExportSecurityContext(_In_ LSA_SEC_HANDLE phContext,_In_ ULONG fFlags,_Inout_ PSecBuffer pPackedContext,_Inout_ PHANDLE pToken)153 UsrSpExportSecurityContext(
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
UsrSpImportSecurityContext(_In_ PSecBuffer pPackedContext,_In_ HANDLE Token,_Inout_ PLSA_SEC_HANDLE phContext)167 UsrSpImportSecurityContext(
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 }
177