ReactOS 0.4.16-dev-122-g325d74c
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,
26 _In_ ULONG fContextReq,
27 _In_ ULONG TargetDataRep,
28 _In_opt_ PCtxtHandle phNewContext,
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
80VOID
83{
85}
86
90 _In_ PCtxtHandle phContext)
91{
93 return 0;
94}
95
96VOID
99{
101}
102
103VOID
106{
108}
109
113 _Out_ PULONG pcPackages,
114 _Deref_out_ PSecPkgInfoW* ppPackageInfo)
115{
117 return 0;
118}
119
123 _In_ PCtxtHandle phContext,
124 _In_ ULONG fFlags,
125 _Out_ PSecBuffer pPackedContext,
126 _Out_ PVOID* pToken)
127{
129 return 0;
130}
131
135 _Inout_ PVOID pvContextBuffer)
136{
138 return 0;
139}
140
144 _In_ PCredHandle phCredential)
145{
147 return 0;
148}
149
150VOID
153{
155}
156
157VOID
160{
162}
163
169 _Outptr_ PSecurityUserData *UserInformation)
170{
172 *UserInformation = NULL;
173 return STATUS_UNSUCCESSFUL;
174}
175
179 _In_ PCtxtHandle phContext)
180{
182 return 0;
183}
184
188 _In_ PSSPI_SEC_STRING pszPackage,
189 _In_ PSecBuffer pPackedContext,
191 _Out_ PCtxtHandle phContext)
192{
194 return 0;
195}
196
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,
208 _Inout_opt_ PCtxtHandle phNewContext,
210 _Out_ PULONG pfContextAttr,
211 _Out_opt_ PTimeStamp ptsExpiry)
212{
214 return 0;
215}
216
220{
221
223 return NULL;
224}
225
226VOID
229{
231}
232
233VOID
236{
238}
239
240VOID
243{
245}
246
247VOID
250{
252}
253
257 _In_ PCtxtHandle phContext,
258 _In_ ULONG fQOP,
259 _In_ PSecBufferDesc pMessage,
260 _In_ ULONG MessageSeqNo)
261{
263 return 0;
264}
265
266VOID
269{
271}
272
276 _In_ PCtxtHandle phContext,
277 _In_ ULONG ulAttribute,
279{
281 return 0;
282}
283
287 _In_ PCredHandle phCredential,
288 _In_ ULONG ulAttribute,
290{
292 return 0;
293}
294
298 _In_ PCtxtHandle phContext,
300{
302 return 0;
303}
304
308 _In_ PSSPI_SEC_STRING pPackageName,
309 _Deref_out_ PSecPkgInfoW *ppPackageInfo)
310{
312 return 0;
313}
314
318 _In_ PCtxtHandle phContext)
319{
321 return 0;
322}
323
324VOID
327{
329}
330
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
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
363 _Out_ PSID Sid,
364 _In_ ULONG SidBufferSize,
365 _Inout_opt_ PULONG SidSize)
366{
368 return 0;
369}
370
372NTAPI
374 _In_ PUNICODE_STRING ServiceClass,
377 _In_opt_ USHORT InstancePort,
378 _In_opt_ PUNICODE_STRING Referrer,
382{
384 return 0;
385}
386
388NTAPI
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
404VOID
407{
409}
410VOID
413{
415}
416
420 _In_ PCtxtHandle phContext,
421 _In_ PSecBufferDesc pMessage,
422 _In_ ULONG MessageSeqNo,
423 _Out_ PULONG pfQOP)
424{
426 return 0;
427}
unsigned char BOOLEAN
LONG NTSTATUS
Definition: precomp.h:26
static WCHAR ServiceName[]
Definition: browser.c:19
@ Reserved2
Definition: bcd.h:202
@ Reserved1
Definition: bcd.h:201
#define UNIMPLEMENTED
Definition: debug.h:118
#define NULL
Definition: types.h:112
SECURITY_STATUS SEC_ENTRY GetSecurityUserInfo(PLUID LogonId, ULONG Flags, PSecurityUserData *UserInformation)
Definition: stubs.c:44
#define SEC_ENTRY
Definition: stubs.c:6
PVOID PSECURITY_PACKAGE_OPTIONS
Definition: stubs.c:8
PVOID PSecurityUserData
Definition: stubs.c:8
VOID SEC_ENTRY UnsealMessage(VOID)
Definition: stubs.c:412
SECURITY_STATUS SEC_ENTRY FreeCredentialsHandle(_In_ PCredHandle phCredential)
Definition: stubs.c:143
VOID SEC_ENTRY CredMarshalTargetInfo(VOID)
Definition: stubs.c:82
SECURITY_STATUS SEC_ENTRY QueryContextAttributesW(_In_ PCtxtHandle phContext, _In_ ULONG ulAttribute, _Out_ PVOID pBuffer)
Definition: stubs.c:275
VOID SEC_ENTRY EfsDecryptFek(VOID)
Definition: stubs.c:98
SECURITY_STATUS SEC_ENTRY MakeSignature(_In_ PCtxtHandle phContext, _In_ ULONG fQOP, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo)
Definition: stubs.c:256
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
SECURITY_STATUS SEC_ENTRY VerifySignature(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pMessage, _In_ ULONG MessageSeqNo, _Out_ PULONG pfQOP)
Definition: stubs.c:419
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
VOID SEC_ENTRY SealMessage(VOID)
Definition: stubs.c:326
SECURITY_STATUS SEC_ENTRY QuerySecurityPackageInfoW(_In_ PSSPI_SEC_STRING pPackageName, _Deref_out_ PSecPkgInfoW *ppPackageInfo)
Definition: stubs.c:307
PSecurityFunctionTableW SEC_ENTRY InitSecurityInterfaceW(void)
Definition: stubs.c:219
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
NTSTATUS SEC_ENTRY SecLookupWellKnownSid(_In_ WELL_KNOWN_SID_TYPE SidType, _Out_ PSID Sid, _In_ ULONG SidBufferSize, _Inout_opt_ PULONG SidSize)
Definition: stubs.c:361
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
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
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
SECURITY_STATUS SEC_ENTRY RevertSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:317
VOID SEC_ENTRY KSecValidateBuffer(VOID)
Definition: stubs.c:235
SECURITY_STATUS SEC_ENTRY DeleteSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:89
SECURITY_STATUS SEC_ENTRY QuerySecurityContextToken(_In_ PCtxtHandle phContext, _Out_ PVOID *Token)
Definition: stubs.c:297
SECURITY_STATUS SEC_ENTRY FreeContextBuffer(_Inout_ PVOID pvContextBuffer)
Definition: stubs.c:134
SECURITY_STATUS SEC_ENTRY ImpersonateSecurityContext(_In_ PCtxtHandle phContext)
Definition: stubs.c:178
SECURITY_STATUS SEC_ENTRY QueryCredentialsAttributesW(_In_ PCredHandle phCredential, _In_ ULONG ulAttribute, _Inout_ PVOID pBuffer)
Definition: stubs.c:286
SECURITY_STATUS SEC_ENTRY ApplyControlToken(_In_ PCtxtHandle phContext, _In_ PSecBufferDesc pInput)
Definition: stubs.c:72
VOID SEC_ENTRY GenerateDirEfs(VOID)
Definition: stubs.c:152
SECURITY_STATUS SEC_ENTRY EnumerateSecurityPackagesW(_Out_ PULONG pcPackages, _Deref_out_ PSecPkgInfoW *ppPackageInfo)
Definition: stubs.c:112
VOID SEC_ENTRY MapSecurityError(VOID)
Definition: stubs.c:268
VOID SEC_ENTRY LsaGetLogonSessionData(VOID)
Definition: stubs.c:249
VOID SEC_ENTRY SecSetPagingMode(VOID)
Definition: stubs.c:406
VOID SEC_ENTRY GenerateSessionKey(VOID)
Definition: stubs.c:159
VOID SEC_ENTRY KSecRegisterSecurityProvider(VOID)
Definition: stubs.c:228
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
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
VOID SEC_ENTRY EfsGenerateKey(VOID)
Definition: stubs.c:105
VOID SEC_ENTRY LsaEnumerateLogonSessions(VOID)
Definition: stubs.c:242
SECURITY_STATUS SEC_ENTRY ImportSecurityContextW(_In_ PSSPI_SEC_STRING pszPackage, _In_ PSecBuffer pPackedContext, _In_ PVOID Token, _Out_ PCtxtHandle phContext)
Definition: stubs.c:187
SECURITY_STATUS SEC_ENTRY ExportSecurityContext(_In_ PCtxtHandle phContext, _In_ ULONG fFlags, _Out_ PSecBuffer pPackedContext, _Out_ PVOID *pToken)
Definition: stubs.c:122
#define UNIMPLEMENTED_DBGBREAK(...)
Definition: debug.h:57
_Must_inspect_result_ _Inout_ PFLT_VOLUME _In_opt_ PCUNICODE_STRING InstanceName
Definition: fltkernel.h:1163
enum _SID_NAME_USE * PSID_NAME_USE
#define _Out_opt_
Definition: ms_sal.h:346
#define _Inout_
Definition: ms_sal.h:378
#define _Outptr_
Definition: ms_sal.h:427
#define _Inout_opt_
Definition: ms_sal.h:379
#define _Out_
Definition: ms_sal.h:345
#define _In_
Definition: ms_sal.h:308
#define _In_opt_
Definition: ms_sal.h:309
#define _Deref_out_
Definition: ms_sal.h:1012
_In_ ULONG _In_ ACCESS_MASK _In_ PSID Sid
Definition: rtlfuncs.h:1145
_In_ ULONG _In_ ULONG _In_ ULONG Length
Definition: ntddpcm.h:102
_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
PVOID *typedef PSecBuffer
Definition: ntsecpkg.h:440
unsigned short USHORT
Definition: pedump.c:61
LONG SECURITY_STATUS
Definition: sspi.h:34
void(SEC_ENTRY * SEC_GET_KEY_FN)(void *Arg, void *Principal, ULONG KeyVer, void **Key, SECURITY_STATUS *Status)
Definition: sspi.h:189
PVOID pBuffer
PULONG MinorVersion OPTIONAL
Definition: CrossNt.h:68
uint32_t * PULONG
Definition: typedefs.h:59
#define NTAPI
Definition: typedefs.h:36
uint32_t ULONG
Definition: typedefs.h:59
#define STATUS_UNSUCCESSFUL
Definition: udferr_usr.h:132
_Must_inspect_result_ _In_ ULONG Flags
Definition: wsk.h:170
_In_opt_ PALLOCATE_FUNCTION Allocate
Definition: exfuncs.h:814
WELL_KNOWN_SID_TYPE
Definition: setypes.h:455
#define PSSPI_SEC_STRING
Definition: sspi.h:264