ReactOS  0.4.15-dev-492-ga1108f6
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 
17 
18 /* FUNCTIONS ******************************************************************/
19 
23  _In_opt_ PCredHandle phCredential,
24  _In_opt_ PCtxtHandle phContext,
25  _In_opt_ PSecBufferDesc pInput,
26  _In_ ULONG fContextReq,
27  _In_ ULONG TargetDataRep,
28  _In_opt_ PCtxtHandle phNewContext,
29  _In_opt_ PSecBufferDesc pOutput,
30  _Out_ PULONG pfContextAttr,
31  _Out_opt_ PTimeStamp ptsExpiry)
32 {
34  return 0;
35 }
36 
40  _In_opt_ PSSPI_SEC_STRING pPrincipal,
41  _In_ PSSPI_SEC_STRING pPackage,
42  _In_ ULONG fCredentialUse,
43  _In_opt_ PVOID pvLogonId,
44  _In_opt_ PVOID pAuthData,
45  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
46  _In_opt_ PVOID pvGetKeyArgument,
47  _Out_ PCredHandle phCredential,
48  _Out_opt_ PTimeStamp ptsExpiry)
49 {
51  return 0;
52 }
53 
57  _In_ PCredHandle hCredentials,
58  _In_opt_ PSSPI_SEC_STRING pPrincipal,
59  _In_ PSSPI_SEC_STRING pPackage,
60  _In_ ULONG fCredentialUse,
61  _In_opt_ PVOID pAuthData,
62  _In_opt_ SEC_GET_KEY_FN pGetKeyFn,
63  _In_opt_ PVOID pvGetKeyArgument,
64  _Out_opt_ PTimeStamp ptsExpiry)
65 {
67  return 0;
68 }
69 
73  _In_ PCtxtHandle phContext,
74  _In_ PSecBufferDesc pInput)
75 {
77  return 0;
78 }
79 
80 VOID
83 {
85 }
86 
90  _In_ PCtxtHandle phContext)
91 {
93  return 0;
94 }
95 
96 VOID
99 {
101 }
102 
103 VOID
104 SEC_ENTRY
106 {
108 }
109 
111 SEC_ENTRY
113  _Out_ PULONG pcPackages,
114  _Deref_out_ PSecPkgInfoW* ppPackageInfo)
115 {
117  return 0;
118 }
119 
121 SEC_ENTRY
123  _In_ PCtxtHandle phContext,
124  _In_ ULONG fFlags,
125  _Out_ PSecBuffer pPackedContext,
126  _Out_ PVOID* pToken)
127 {
129  return 0;
130 }
131 
133 SEC_ENTRY
135  _Inout_ PVOID pvContextBuffer)
136 {
138  return 0;
139 }
140 
142 SEC_ENTRY
144  _In_ PCredHandle phCredential)
145 {
147  return 0;
148 }
149 
150 VOID
151 SEC_ENTRY
153 {
155 }
156 
157 VOID
158 SEC_ENTRY
160 {
162 }
163 
165 SEC_ENTRY
168  _In_ ULONG Flags,
169  _Outptr_ PSecurityUserData *UserInformation)
170 {
172  *UserInformation = NULL;
173  return STATUS_UNSUCCESSFUL;
174 }
175 
177 SEC_ENTRY
179  _In_ PCtxtHandle phContext)
180 {
182  return 0;
183 }
184 
186 SEC_ENTRY
188  _In_ PSSPI_SEC_STRING pszPackage,
189  _In_ PSecBuffer pPackedContext,
190  _In_ PVOID Token,
191  _Out_ PCtxtHandle phContext)
192 {
194  return 0;
195 }
196 
198 SEC_ENTRY
200  _In_opt_ PCredHandle phCredential,
201  _In_opt_ PCtxtHandle phContext,
202  _In_opt_ PSSPI_SEC_STRING pTargetName,
203  _In_ ULONG fContextReq,
205  _In_ ULONG TargetDataRep,
206  _In_opt_ PSecBufferDesc pInput,
208  _Inout_opt_ PCtxtHandle phNewContext,
209  _Inout_opt_ PSecBufferDesc pOutput,
210  _Out_ PULONG pfContextAttr,
211  _Out_opt_ PTimeStamp ptsExpiry)
212 {
214  return 0;
215 }
216 
218 SEC_ENTRY
220 {
221 
223  return NULL;
224 }
225 
226 VOID
227 SEC_ENTRY
229 {
231 }
232 
233 VOID
234 SEC_ENTRY
236 {
238 }
239 
240 VOID
241 SEC_ENTRY
243 {
245 }
246 
247 VOID
248 SEC_ENTRY
250 {
252 }
253 
255 SEC_ENTRY
257  _In_ PCtxtHandle phContext,
258  _In_ ULONG fQOP,
259  _In_ PSecBufferDesc pMessage,
260  _In_ ULONG MessageSeqNo)
261 {
263  return 0;
264 }
265 
266 VOID
267 SEC_ENTRY
269 {
271 }
272 
274 SEC_ENTRY
276  _In_ PCtxtHandle phContext,
277  _In_ ULONG ulAttribute,
279 {
281  return 0;
282 }
283 
285 SEC_ENTRY
287  _In_ PCredHandle phCredential,
288  _In_ ULONG ulAttribute,
290 {
292  return 0;
293 }
294 
296 SEC_ENTRY
298  _In_ PCtxtHandle phContext,
299  _Out_ PVOID* Token)
300 {
302  return 0;
303 }
304 
306 SEC_ENTRY
308  _In_ PSSPI_SEC_STRING pPackageName,
309  _Deref_out_ PSecPkgInfoW *ppPackageInfo)
310 {
312  return 0;
313 }
314 
316 SEC_ENTRY
318  _In_ PCtxtHandle phContext)
319 {
321  return 0;
322 }
323 
324 VOID
325 SEC_ENTRY
327 {
329 }
330 
331 NTSTATUS
332 SEC_ENTRY
335  _Inout_ PULONG SidSize,
336  _Out_ PSID Sid,
337  _Out_ PSID_NAME_USE NameUse,
338  _Out_opt_ PULONG DomainSize,
339  _Inout_opt_ PUNICODE_STRING ReferencedDomain)
340 {
342  return 0;
343 }
344 
345 NTSTATUS
346 SEC_ENTRY
348  _In_ PSID Sid,
349  _Out_ PULONG NameSize,
350  _Inout_ PUNICODE_STRING NameBuffer,
351  _Out_ PULONG DomainSize OPTIONAL,
352  _Out_opt_ PUNICODE_STRING DomainBuffer,
353  _Out_ PSID_NAME_USE NameUse)
354 {
356  return 0;
357 }
358 
359 NTSTATUS
360 SEC_ENTRY
362  _In_ WELL_KNOWN_SID_TYPE SidType,
363  _Out_ PSID Sid,
364  _In_ ULONG SidBufferSize,
365  _Inout_opt_ PULONG SidSize)
366 {
368  return 0;
369 }
370 
371 NTSTATUS
372 NTAPI
374  _In_ PUNICODE_STRING ServiceClass,
377  _In_opt_ USHORT InstancePort,
378  _In_opt_ PUNICODE_STRING Referrer,
382 {
384  return 0;
385 }
386 
387 NTSTATUS
388 NTAPI
390  _In_ PUNICODE_STRING ServiceClass,
393  _In_opt_ USHORT InstancePort,
394  _In_opt_ PUNICODE_STRING Referrer,
395  _In_opt_ PUNICODE_STRING TargetInfo,
399 {
401  return 0;
402 }
403 
404 VOID
405 SEC_ENTRY
407 {
409 }
410 VOID
411 SEC_ENTRY
413 {
415 }
416 
418 SEC_ENTRY
420  _In_ PCtxtHandle phContext,
421  _In_ PSecBufferDesc pMessage,
422  _In_ ULONG MessageSeqNo,
423  _Out_ PULONG pfQOP)
424 {
426  return 0;
427 }
VOID SEC_ENTRY EfsDecryptFek(VOID)
Definition: stubs.c:98
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:22
#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:307
SECURITY_STATUS SEC_ENTRY ApplyControlToken(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pInput)
Definition: stubs.c:72
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:56
#define _Outptr_
Definition: no_sal2.h:396
SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesW(_Out_ PULONG pcPackages, _Deref_out_ PSecPkgInfoW *ppPackageInfo)
Definition: stubs.c:112
NTSTATUS SEC_ENTRY SecLookupWellKnownSid(_In_ WELL_KNOWN_SID_TYPE SidType, _Out_ PSID Sid, _In_ ULONG SidBufferSize, _Inout_opt_ PULONG SidSize)
Definition: stubs.c:361
#define UNIMPLEMENTED
Definition: stubs.c:20
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:333
_In_opt_ PALLOCATE_FUNCTION Allocate
Definition: exfuncs.h:814
#define _In_opt_
Definition: no_sal2.h:213
PVOID PSecurityUserData
Definition: stubs.c:8
SECURITY_STATUS SEC_ENTRY RevertSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:317
VOID SEC_ENTRY SecSetPagingMode(VOID)
Definition: stubs.c:406
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:347
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
VOID SEC_ENTRY KSecRegisterSecurityProvider(VOID)
Definition: stubs.c:228
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:82
SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesW(_In_ PCredHandle phCredential, _In_ ULONG ulAttribute, _Inout_ PVOID pBuffer)
Definition: stubs.c:286
SECURITY_STATUS SEC_ENTRY MakeSignature(_In_ PCtxtHandle phContext, _In_ ULONG fQOP, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo)
Definition: stubs.c:256
SECURITY_STATUS SEC_ENTRY ImportSecurityContextW(_In_ PSSPI_SEC_STRING pszPackage, _In_ PSecBuffer pPackedContext, _In_ PVOID Token, _Out_ PCtxtHandle phContext)
Definition: stubs.c:187
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:1103
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:297
VOID SEC_ENTRY SealMessage(VOID)
Definition: stubs.c:326
PVOID PSECURITY_PACKAGE_OPTIONS
Definition: stubs.c:8
VOID SEC_ENTRY UnsealMessage(VOID)
Definition: stubs.c:412
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:440
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:199
SECURITY_STATUS SEC_ENTRY FreeCredentialsHandle(_In_ PCredHandle phCredential)
Definition: stubs.c:143
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:39
#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:122
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
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:389
PSecurityFunctionTableW SEC_ENTRY InitSecurityInterfaceW(void)
Definition: stubs.c:219
VOID SEC_ENTRY LsaEnumerateLogonSessions(VOID)
Definition: stubs.c:242
SECURITY_STATUS SEC_ENTRY DeleteSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:89
VOID SEC_ENTRY GenerateSessionKey(VOID)
Definition: stubs.c:159
#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:189
SECURITY_STATUS SEC_ENTRY ImpersonateSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:178
WELL_KNOWN_SID_TYPE
Definition: setypes.h:427
unsigned short USHORT
Definition: pedump.c:61
unsigned int * PULONG
Definition: retypes.h:1
_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 LogonId
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:373
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:152
SECURITY_STATUS SEC_ENTRY FreeContextBuffer(_Inout_ PVOID pvContextBuffer)
Definition: stubs.c:134
VOID SEC_ENTRY KSecValidateBuffer(VOID)
Definition: stubs.c:235
SECURITY_STATUS SEC_ENTRY QueryContextAttributesW(_In_ PCtxtHandle phContext, _In_ ULONG ulAttribute, _Out_ PVOID pBuffer)
Definition: stubs.c:275
#define PSSPI_SEC_STRING
Definition: sspi.h:264
VOID SEC_ENTRY LsaGetLogonSessionData(VOID)
Definition: stubs.c:249
VOID SEC_ENTRY EfsGenerateKey(VOID)
Definition: stubs.c:105
#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:419
VOID SEC_ENTRY MapSecurityError(VOID)
Definition: stubs.c:268
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68