ReactOS  0.4.14-dev-1007-g90d795b
stubs.c
Go to the documentation of this file.
1 /*
2  * PROJECT: ReactOS Drivers
3  * COPYRIGHT: See COPYING in the top level directory
4  * PURPOSE: Kernel Security Support Provider Interface Driver
5  *
6  * PROGRAMMERS: Timo Kreuzer (timo.kreuzer@reactos.org)
7  */
8 
9 /* INCLUDES *******************************************************************/
10 
11 #include "ksecdd.h"
12 
13 #define NDEBUG
14 #include <debug.h>
15 
16 
17 /* FUNCTIONS ******************************************************************/
18 
22  _In_opt_ PCredHandle phCredential,
23  _In_opt_ PCtxtHandle phContext,
24  _In_opt_ PSecBufferDesc pInput,
25  _In_ ULONG fContextReq,
26  _In_ ULONG TargetDataRep,
27  _In_opt_ PCtxtHandle phNewContext,
28  _In_opt_ PSecBufferDesc pOutput,
29  _Out_ PULONG pfContextAttr,
30  _Out_opt_ PTimeStamp ptsExpiry)
31 {
33  return 0;
34 }
35 
39  _In_opt_ PSSPI_SEC_STRING pPrincipal,
40  _In_ PSSPI_SEC_STRING pPackage,
41  _In_ ULONG fCredentialUse,
42  _In_opt_ PVOID pvLogonId,
43  _In_opt_ PVOID pAuthData,
44  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
45  _In_opt_ PVOID pvGetKeyArgument,
46  _Out_ PCredHandle phCredential,
47  _Out_opt_ PTimeStamp ptsExpiry)
48 {
50  return 0;
51 }
52 
56  _In_ PCredHandle hCredentials,
57  _In_opt_ PSSPI_SEC_STRING pPrincipal,
58  _In_ PSSPI_SEC_STRING pPackage,
59  _In_ ULONG fCredentialUse,
60  _In_opt_ PVOID pAuthData,
61  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
62  _In_opt_ PVOID pvGetKeyArgument,
63  _Out_opt_ PTimeStamp ptsExpiry)
64 {
66  return 0;
67 }
68 
72  _In_ PCtxtHandle phContext,
73  _In_ PSecBufferDesc pInput)
74 {
76  return 0;
77 }
78 
79 VOID
82 {
84 }
85 
89  _In_ PCtxtHandle phContext)
90 {
92  return 0;
93 }
94 
95 VOID
98 {
100 }
101 
102 VOID
103 SEC_ENTRY
105 {
107 }
108 
110 SEC_ENTRY
112  _Out_ PULONG pcPackages,
113  _Deref_out_ PSecPkgInfoW* ppPackageInfo)
114 {
116  return 0;
117 }
118 
120 SEC_ENTRY
122  _In_ PCtxtHandle phContext,
123  _In_ ULONG fFlags,
124  _Out_ PSecBuffer pPackedContext,
125  _Out_ PVOID* pToken)
126 {
128  return 0;
129 }
130 
132 SEC_ENTRY
134  _Inout_ PVOID pvContextBuffer)
135 {
137  return 0;
138 }
139 
141 SEC_ENTRY
143  _In_ PCredHandle phCredential)
144 {
146  return 0;
147 }
148 
149 VOID
150 SEC_ENTRY
152 {
154 }
155 
156 VOID
157 SEC_ENTRY
159 {
161 }
162 
163 VOID
164 SEC_ENTRY
166 {
168 }
169 
171 SEC_ENTRY
173  _In_ PCtxtHandle phContext)
174 {
176  return 0;
177 }
178 
180 SEC_ENTRY
182  _In_ PSSPI_SEC_STRING pszPackage,
183  _In_ PSecBuffer pPackedContext,
184  _In_ PVOID Token,
185  _Out_ PCtxtHandle phContext)
186 {
188  return 0;
189 }
190 
192 SEC_ENTRY
194  _In_opt_ PCredHandle phCredential,
195  _In_opt_ PCtxtHandle phContext,
196  _In_opt_ PSSPI_SEC_STRING pTargetName,
197  _In_ ULONG fContextReq,
199  _In_ ULONG TargetDataRep,
200  _In_opt_ PSecBufferDesc pInput,
202  _Inout_opt_ PCtxtHandle phNewContext,
203  _Inout_opt_ PSecBufferDesc pOutput,
204  _Out_ PULONG pfContextAttr,
205  _Out_opt_ PTimeStamp ptsExpiry)
206 {
208  return 0;
209 }
210 
212 SEC_ENTRY
214 {
215 
217  return NULL;
218 }
219 
220 VOID
221 SEC_ENTRY
223 {
225 }
226 
227 VOID
228 SEC_ENTRY
230 {
232 }
233 
234 VOID
235 SEC_ENTRY
237 {
239 }
240 
241 VOID
242 SEC_ENTRY
244 {
246 }
247 
249 SEC_ENTRY
251  _In_ PCtxtHandle phContext,
252  _In_ ULONG fQOP,
253  _In_ PSecBufferDesc pMessage,
254  _In_ ULONG MessageSeqNo)
255 {
257  return 0;
258 }
259 
260 VOID
261 SEC_ENTRY
263 {
265 }
266 
268 SEC_ENTRY
270  _In_ PCtxtHandle phContext,
271  _In_ ULONG ulAttribute,
273 {
275  return 0;
276 }
277 
279 SEC_ENTRY
281  _In_ PCredHandle phCredential,
282  _In_ ULONG ulAttribute,
284 {
286  return 0;
287 }
288 
290 SEC_ENTRY
292  _In_ PCtxtHandle phContext,
293  _Out_ PVOID* Token)
294 {
296  return 0;
297 }
298 
300 SEC_ENTRY
302  _In_ PSSPI_SEC_STRING pPackageName,
303  _Deref_out_ PSecPkgInfoW *ppPackageInfo)
304 {
306  return 0;
307 }
308 
310 SEC_ENTRY
312  _In_ PCtxtHandle phContext)
313 {
315  return 0;
316 }
317 
318 VOID
319 SEC_ENTRY
321 {
323 }
324 
325 NTSTATUS
326 SEC_ENTRY
329  _Inout_ PULONG SidSize,
330  _Out_ PSID Sid,
331  _Out_ PSID_NAME_USE NameUse,
332  _Out_opt_ PULONG DomainSize,
333  _Inout_opt_ PUNICODE_STRING ReferencedDomain)
334 {
336  return 0;
337 }
338 
339 NTSTATUS
340 SEC_ENTRY
342  _In_ PSID Sid,
343  _Out_ PULONG NameSize,
344  _Inout_ PUNICODE_STRING NameBuffer,
345  _Out_ PULONG DomainSize OPTIONAL,
346  _Out_opt_ PUNICODE_STRING DomainBuffer,
347  _Out_ PSID_NAME_USE NameUse)
348 {
350  return 0;
351 }
352 
353 NTSTATUS
354 SEC_ENTRY
356  _In_ WELL_KNOWN_SID_TYPE SidType,
357  _Out_ PSID Sid,
358  _In_ ULONG SidBufferSize,
359  _Inout_opt_ PULONG SidSize)
360 {
362  return 0;
363 }
364 
365 NTSTATUS
366 NTAPI
368  _In_ PUNICODE_STRING ServiceClass,
371  _In_opt_ USHORT InstancePort,
372  _In_opt_ PUNICODE_STRING Referrer,
376 {
378  return 0;
379 }
380 
381 NTSTATUS
382 NTAPI
384  _In_ PUNICODE_STRING ServiceClass,
387  _In_opt_ USHORT InstancePort,
388  _In_opt_ PUNICODE_STRING Referrer,
389  _In_opt_ PUNICODE_STRING TargetInfo,
393 {
395  return 0;
396 }
397 
398 VOID
399 SEC_ENTRY
401 {
403 }
404 VOID
405 SEC_ENTRY
407 {
409 }
410 
412 SEC_ENTRY
414  _In_ PCtxtHandle phContext,
415  _In_ PSecBufferDesc pMessage,
416  _In_ ULONG MessageSeqNo,
417  _Out_ PULONG pfQOP)
418 {
420  return 0;
421 }
VOID SEC_ENTRY EfsDecryptFek(VOID)
Definition: stubs.c:97
SECURITY_STATUS SEC_ENTRY AcceptSecurityContext(_In_opt_ PCredHandle phCredential, _In_opt_ PCtxtHandle phContext, _In_opt_ PSecBufferDesc pInput, _In_ ULONG fContextReq, _In_ ULONG TargetDataRep, _In_opt_ PCtxtHandle phNewContext, _In_opt_ PSecBufferDesc pOutput, _Out_ PULONG pfContextAttr, _Out_opt_ PTimeStamp ptsExpiry)
Definition: stubs.c:21
#define _Deref_out_
Definition: no_sal2.h:29
SECURITY_STATUS SEC_ENTRY QuerySecurityPackageInfoW(_In_ PSSPI_SEC_STRING pPackageName, _Deref_out_ PSecPkgInfoW *ppPackageInfo)
Definition: stubs.c:301
SECURITY_STATUS SEC_ENTRY ApplyControlToken(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pInput)
Definition: stubs.c:71
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
SECURITY_STATUS SEC_ENTRY AddCredentialsW(_In_ PCredHandle hCredentials, _In_opt_ PSSPI_SEC_STRING pPrincipal, _In_ PSSPI_SEC_STRING pPackage, _In_ ULONG fCredentialUse, _In_opt_ PVOID pAuthData, _In_opt_ SEC_GET_KEY_FN pGetKeyFn, _In_opt_ PVOID pvGetKeyArgument, _Out_opt_ PTimeStamp ptsExpiry)
Definition: stubs.c:55
SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesW(_Out_ PULONG pcPackages, _Deref_out_ PSecPkgInfoW *ppPackageInfo)
Definition: stubs.c:111
NTSTATUS SEC_ENTRY SecLookupWellKnownSid(_In_ WELL_KNOWN_SID_TYPE SidType, _Out_ PSID Sid, _In_ ULONG SidBufferSize, _Inout_opt_ PULONG SidSize)
Definition: stubs.c:355
NTSTATUS SEC_ENTRY SecLookupAccountName(_In_ PUNICODE_STRING Name, _Inout_ PULONG SidSize, _Out_ PSID Sid, _Out_ PSID_NAME_USE NameUse, _Out_opt_ PULONG DomainSize, _Inout_opt_ PUNICODE_STRING ReferencedDomain)
Definition: stubs.c:327
_In_opt_ PALLOCATE_FUNCTION Allocate
Definition: exfuncs.h:656
#define _In_opt_
Definition: no_sal2.h:213
SECURITY_STATUS SEC_ENTRY RevertSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:311
VOID SEC_ENTRY SecSetPagingMode(VOID)
Definition: stubs.c:400
NTSTATUS SEC_ENTRY SecLookupAccountSid(_In_ PSID Sid, _Out_ PULONG NameSize, _Inout_ PUNICODE_STRING NameBuffer, _Out_ PULONG DomainSize OPTIONAL, _Out_opt_ PUNICODE_STRING DomainBuffer, _Out_ PSID_NAME_USE NameUse)
Definition: stubs.c:341
VOID SEC_ENTRY KSecRegisterSecurityProvider(VOID)
Definition: stubs.c:222
NTSTATUS(* NTAPI)(IN PFILE_FULL_EA_INFORMATION EaBuffer, IN ULONG EaLength, OUT PULONG ErrorOffset)
Definition: IoEaTest.cpp:117
VOID SEC_ENTRY CredMarshalTargetInfo(VOID)
Definition: stubs.c:81
SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesW(_In_ PCredHandle phCredential, _In_ ULONG ulAttribute, _Inout_ PVOID pBuffer)
Definition: stubs.c:280
SECURITY_STATUS SEC_ENTRY MakeSignature(_In_ PCtxtHandle phContext, _In_ ULONG fQOP, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo)
Definition: stubs.c:250
SECURITY_STATUS SEC_ENTRY ImportSecurityContextW(_In_ PSSPI_SEC_STRING pszPackage, _In_ PSecBuffer pPackedContext, _In_ PVOID Token, _Out_ PCtxtHandle phContext)
Definition: stubs.c:181
unsigned char BOOLEAN
smooth NULL
Definition: ftsmooth.c:416
PVOID pBuffer
#define _Out_
Definition: no_sal2.h:323
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Definition: rtlfuncs.h:1104
Definition: bcd.h:202
LONG SECURITY_STATUS
Definition: sspi.h:34
#define SEC_ENTRY
Definition: stubs.c:6
SECURITY_STATUS SEC_ENTRY QuerySecurityContextToken(_In_ PCtxtHandle phContext, _Out_ PVOID *Token)
Definition: stubs.c:291
VOID SEC_ENTRY SealMessage(VOID)
Definition: stubs.c:320
VOID SEC_ENTRY UnsealMessage(VOID)
Definition: stubs.c:406
SECURITY_STATUS SEC_ENTRY GetSecurityUserInfo(PLUID LogonId, ULONG Flags, PSecurityUserData *UserInformation)
Definition: stubs.c:44
#define _Out_opt_
Definition: no_sal2.h:339
enum _SID_NAME_USE * PSID_NAME_USE
LPTSTR ServiceName
Definition: ServiceMain.c:15
PVOID *typedef PSecBuffer
Definition: ntsecpkg.h:400
SECURITY_STATUS SEC_ENTRY InitializeSecurityContextW(_In_opt_ PCredHandle phCredential, _In_opt_ PCtxtHandle phContext, _In_opt_ PSSPI_SEC_STRING pTargetName, _In_ ULONG fContextReq, _In_ ULONG Reserved1, _In_ ULONG TargetDataRep, _In_opt_ PSecBufferDesc pInput, _In_ ULONG Reserved2, _Inout_opt_ PCtxtHandle phNewContext, _Inout_opt_ PSecBufferDesc pOutput, _Out_ PULONG pfContextAttr, _Out_opt_ PTimeStamp ptsExpiry)
Definition: stubs.c:193
SECURITY_STATUS SEC_ENTRY FreeCredentialsHandle(_In_ PCredHandle phCredential)
Definition: stubs.c:142
SECURITY_STATUS SEC_ENTRY AcquireCredentialsHandleW(_In_opt_ PSSPI_SEC_STRING pPrincipal, _In_ PSSPI_SEC_STRING pPackage, _In_ ULONG fCredentialUse, _In_opt_ PVOID pvLogonId, _In_opt_ PVOID pAuthData, _In_opt_ SEC_GET_KEY_FN pGetKeyFn, _In_opt_ PVOID pvGetKeyArgument, _Out_ PCredHandle phCredential, _Out_opt_ PTimeStamp ptsExpiry)
Definition: stubs.c:38
#define _Inout_
Definition: no_sal2.h:244
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:101
SECURITY_STATUS SEC_ENTRY ExportSecurityContext(_In_ PCtxtHandle phContext, _In_ ULONG fFlags, _Out_ PSecBuffer pPackedContext, _Out_ PVOID *pToken)
Definition: stubs.c:121
NTSTATUS NTAPI SecMakeSPNEx(_In_ PUNICODE_STRING ServiceClass, _In_ PUNICODE_STRING ServiceName, _In_opt_ PUNICODE_STRING InstanceName, _In_opt_ USHORT InstancePort, _In_opt_ PUNICODE_STRING Referrer, _In_opt_ PUNICODE_STRING TargetInfo, _Inout_ PUNICODE_STRING Spn, _Out_opt_ PULONG Length, _In_ BOOLEAN Allocate)
Definition: stubs.c:383
PSecurityFunctionTableW SEC_ENTRY InitSecurityInterfaceW(void)
Definition: stubs.c:213
VOID SEC_ENTRY LsaEnumerateLogonSessions(VOID)
Definition: stubs.c:236
SECURITY_STATUS SEC_ENTRY DeleteSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:88
VOID SEC_ENTRY GenerateSessionKey(VOID)
Definition: stubs.c:158
#define _In_
Definition: no_sal2.h:204
void(SEC_ENTRY * SEC_GET_KEY_FN)(void *Arg, void *Principal, ULONG KeyVer, void **Key, SECURITY_STATUS *Status)
Definition: sspi.h:176
SECURITY_STATUS SEC_ENTRY ImpersonateSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:172
WELL_KNOWN_SID_TYPE
Definition: setypes.h:427
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
NTSTATUS NTAPI SecMakeSPN(_In_ PUNICODE_STRING ServiceClass, _In_ PUNICODE_STRING ServiceName, _In_opt_ PUNICODE_STRING InstanceName, _In_opt_ USHORT InstancePort, _In_opt_ PUNICODE_STRING Referrer, _Inout_ PUNICODE_STRING Spn, _Out_opt_ PULONG Length, _In_ BOOLEAN Allocate)
Definition: stubs.c:367
Definition: bcd.h:201
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
_Must_inspect_result_ _Inout_ PFLT_VOLUME _In_opt_ PCUNICODE_STRING InstanceName
Definition: fltkernel.h:1162
unsigned int ULONG
Definition: retypes.h:1
VOID SEC_ENTRY GenerateDirEfs(VOID)
Definition: stubs.c:151
SECURITY_STATUS SEC_ENTRY FreeContextBuffer(_Inout_ PVOID pvContextBuffer)
Definition: stubs.c:133
VOID SEC_ENTRY KSecValidateBuffer(VOID)
Definition: stubs.c:229
SECURITY_STATUS SEC_ENTRY QueryContextAttributesW(_In_ PCtxtHandle phContext, _In_ ULONG ulAttribute, _Out_ PVOID pBuffer)
Definition: stubs.c:269
#define PSSPI_SEC_STRING
Definition: sspi.h:264
VOID SEC_ENTRY LsaGetLogonSessionData(VOID)
Definition: stubs.c:243
VOID SEC_ENTRY EfsGenerateKey(VOID)
Definition: stubs.c:104
#define _Inout_opt_
Definition: no_sal2.h:258
SECURITY_STATUS SEC_ENTRY VerifySignature(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo, _Out_ PULONG pfQOP)
Definition: stubs.c:413
VOID SEC_ENTRY MapSecurityError(VOID)
Definition: stubs.c:262
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68