FreeRDP
Loading...
Searching...
No Matches
libwinpr/sspi/sspi.h
1
20#ifndef WINPR_SSPI_PRIVATE_H
21#define WINPR_SSPI_PRIVATE_H
22
23#include <winpr/sspi.h>
24
25#define SCHANNEL_CB_MAX_TOKEN 0x00006000
26
27typedef struct
28{
29 DWORD flags;
30 ULONG fCredentialUse;
31 SEC_GET_KEY_FN pGetKeyFn;
32 void* pvGetKeyArgument;
33 SEC_WINNT_AUTH_IDENTITY identity;
34 SEC_WINPR_NTLM_SETTINGS ntlmSettings;
35 SEC_WINPR_KERBEROS_SETTINGS kerbSettings;
37
38SSPI_CREDENTIALS* sspi_CredentialsNew(void);
39void sspi_CredentialsFree(SSPI_CREDENTIALS* credentials);
40
41PSecBuffer sspi_FindSecBuffer(PSecBufferDesc pMessage, ULONG BufferType);
42
43SecHandle* sspi_SecureHandleAlloc(void);
44void sspi_SecureHandleInvalidate(SecHandle* handle);
45void* sspi_SecureHandleGetLowerPointer(SecHandle* handle);
46void sspi_SecureHandleSetLowerPointer(SecHandle* handle, void* pointer);
47void* sspi_SecureHandleGetUpperPointer(SecHandle* handle);
48void sspi_SecureHandleSetUpperPointer(SecHandle* handle, void* pointer);
49void sspi_SecureHandleFree(SecHandle* handle);
50
51enum SecurityFunctionTableIndex
52{
53 EnumerateSecurityPackagesIndex = 1,
54 Reserved1Index = 2,
55 QueryCredentialsAttributesIndex = 3,
56 AcquireCredentialsHandleIndex = 4,
57 FreeCredentialsHandleIndex = 5,
58 Reserved2Index = 6,
59 InitializeSecurityContextIndex = 7,
60 AcceptSecurityContextIndex = 8,
61 CompleteAuthTokenIndex = 9,
62 DeleteSecurityContextIndex = 10,
63 ApplyControlTokenIndex = 11,
64 QueryContextAttributesIndex = 12,
65 ImpersonateSecurityContextIndex = 13,
66 RevertSecurityContextIndex = 14,
67 MakeSignatureIndex = 15,
68 VerifySignatureIndex = 16,
69 FreeContextBufferIndex = 17,
70 QuerySecurityPackageInfoIndex = 18,
71 Reserved3Index = 19,
72 Reserved4Index = 20,
73 ExportSecurityContextIndex = 21,
74 ImportSecurityContextIndex = 22,
75 AddCredentialsIndex = 23,
76 Reserved8Index = 24,
77 QuerySecurityContextTokenIndex = 25,
78 EncryptMessageIndex = 26,
79 DecryptMessageIndex = 27,
80 SetContextAttributesIndex = 28,
81 SetCredentialsAttributesIndex = 29
82};
83
84BOOL IsSecurityStatusError(SECURITY_STATUS status);
85
86#include "sspi_gss.h"
87#include "sspi_winpr.h"
88
89#endif /* WINPR_SSPI_PRIVATE_H */