xref: /reactos/dll/win32/msv1_0/user.h (revision 09dde2cf)
1 /*
2  * PROJECT:     Authentication Package DLL
3  * LICENSE:     GPL-2.0-or-later (https://spdx.org/licenses/GPL-2.0-or-later)
4  * PURPOSE:     Header for user.c
5  * COPYRIGHT:   Copyright 2019-2020 Andreas Maier <staubim@quantentunnel.de>
6  */
7 
8 #pragma once
9 
10 NTSTATUS
11 NTAPI
12 SpInstanceInit(
13     _In_ ULONG Version,
14     _In_ PSECPKG_DLL_FUNCTIONS FunctionTable,
15     _Inout_ PVOID *UserFunctions);
16 
17 NTSTATUS
18 NTAPI
19 UsrSpMakeSignature(
20     _In_ LSA_SEC_HANDLE ContextHandle,
21     _In_ ULONG QualityOfProtection,
22     _Inout_ PSecBufferDesc MessageBuffers,
23     _In_ ULONG MessageSequenceNumber);
24 
25 NTSTATUS
26 NTAPI
27 UsrSpVerifySignature(
28     _In_ LSA_SEC_HANDLE phContext,
29     _In_ PSecBufferDesc pMessage,
30     _In_ ULONG MessageSeqNo,
31     _In_ PULONG pfQOP);
32 
33 NTSTATUS
34 NTAPI
35 UsrSpSealMessage(
36     _In_ LSA_SEC_HANDLE ContextHandle,
37     _In_ ULONG QualityOfProtection,
38     _Inout_ PSecBufferDesc MessageBuffers,
39     _In_ ULONG MessageSequenceNumber);
40 
41 NTSTATUS
42 NTAPI
43 UsrSpUnsealMessage(
44     _In_ LSA_SEC_HANDLE ContextHandle,
45     _Inout_ PSecBufferDesc MessageBuffers,
46     _In_ ULONG MessageSequenceNumber,
47     _In_ PULONG QualityOfProtection);
48 
49 NTSTATUS
50 NTAPI
51 UsrSpGetContextToken(
52     _In_ LSA_SEC_HANDLE ContextHandle,
53     _Inout_ PHANDLE ImpersonationToken);
54 
55 NTSTATUS
56 NTAPI
57 UsrSpQueryContextAttributes(
58     _In_ LSA_SEC_HANDLE ContextHandle,
59     _In_ ULONG ContextAttribute,
60     _Inout_ PVOID Buffer);
61 
62 NTSTATUS
63 NTAPI
64 UsrSpCompleteAuthToken(
65     _In_ LSA_SEC_HANDLE ContextHandle,
66     _In_ PSecBufferDesc InputBuffer);
67 
68 NTSTATUS
69 NTAPI
70 UsrSpDeleteUserModeContext(
71     _In_ LSA_SEC_HANDLE ContextHandle);
72 
73 NTSTATUS
74 NTAPI
75 UsrSpFormatCredentials(
76     _In_ PSecBuffer Credentials,
77     _Inout_ PSecBuffer FormattedCredentials);
78 
79 NTSTATUS
80 NTAPI
81 UsrSpMarshallSupplementalCreds(
82     _In_ ULONG CredentialSize,
83     _In_ PUCHAR Credentials,
84     _Inout_ PULONG MarshalledCredSize,
85     _Inout_ PVOID *MarshalledCreds);
86 
87 NTSTATUS
88 NTAPI
89 UsrSpExportSecurityContext(
90     _In_ LSA_SEC_HANDLE phContext,
91     _In_ ULONG fFlags,
92     _Inout_ PSecBuffer pPackedContext,
93     _Inout_ PHANDLE pToken);
94 
95 NTSTATUS
96 NTAPI
97 UsrSpImportSecurityContext(
98     _In_ PSecBuffer pPackedContext,
99     _In_ HANDLE Token,
100     _Inout_ PLSA_SEC_HANDLE phContext);
101