20#ifndef WINPR_SSPI_PRIVATE_H
21#define WINPR_SSPI_PRIVATE_H
23#include <winpr/sspi.h>
25#define SCHANNEL_CB_MAX_TOKEN 0x00006000
31 SEC_GET_KEY_FN pGetKeyFn;
32 void* pvGetKeyArgument;
33 SEC_WINNT_AUTH_IDENTITY identity;
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);
51enum SecurityFunctionTableIndex
53 EnumerateSecurityPackagesIndex = 1,
55 QueryCredentialsAttributesIndex = 3,
56 AcquireCredentialsHandleIndex = 4,
57 FreeCredentialsHandleIndex = 5,
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,
73 ExportSecurityContextIndex = 21,
74 ImportSecurityContextIndex = 22,
75 AddCredentialsIndex = 23,
77 QuerySecurityContextTokenIndex = 25,
78 EncryptMessageIndex = 26,
79 DecryptMessageIndex = 27,
80 SetContextAttributesIndex = 28,
81 SetCredentialsAttributesIndex = 29
84BOOL IsSecurityStatusError(SECURITY_STATUS status);
87#include "sspi_winpr.h"