20#ifndef WINPR_SSPI_PRIVATE_H
21#define WINPR_SSPI_PRIVATE_H
23#include <winpr/sspi.h>
26#if defined(__BIG_ENDIAN__)
27#define W(c) (((WCHAR)(char)c) << 8)
29#define W(c) (((WCHAR)(char)c))
32#define SCHANNEL_CB_MAX_TOKEN 0x00006000
38 SEC_GET_KEY_FN pGetKeyFn;
39 void* pvGetKeyArgument;
40 SEC_WINNT_AUTH_IDENTITY identity;
51void sspi_SecureHandleInvalidate(
SecHandle* handle);
52void* sspi_SecureHandleGetLowerPointer(
SecHandle* handle);
53void sspi_SecureHandleSetLowerPointer(
SecHandle* handle,
void* pointer);
54void* sspi_SecureHandleGetUpperPointer(
SecHandle* handle);
55void sspi_SecureHandleSetUpperPointer(
SecHandle* handle,
void* pointer);
56void sspi_SecureHandleFree(
SecHandle* handle);
58enum SecurityFunctionTableIndex
60 EnumerateSecurityPackagesIndex = 1,
62 QueryCredentialsAttributesIndex = 3,
63 AcquireCredentialsHandleIndex = 4,
64 FreeCredentialsHandleIndex = 5,
66 InitializeSecurityContextIndex = 7,
67 AcceptSecurityContextIndex = 8,
68 CompleteAuthTokenIndex = 9,
69 DeleteSecurityContextIndex = 10,
70 ApplyControlTokenIndex = 11,
71 QueryContextAttributesIndex = 12,
72 ImpersonateSecurityContextIndex = 13,
73 RevertSecurityContextIndex = 14,
74 MakeSignatureIndex = 15,
75 VerifySignatureIndex = 16,
76 FreeContextBufferIndex = 17,
77 QuerySecurityPackageInfoIndex = 18,
80 ExportSecurityContextIndex = 21,
81 ImportSecurityContextIndex = 22,
82 AddCredentialsIndex = 23,
84 QuerySecurityContextTokenIndex = 25,
85 EncryptMessageIndex = 26,
86 DecryptMessageIndex = 27,
87 SetContextAttributesIndex = 28,
88 SetCredentialsAttributesIndex = 29
91BOOL IsSecurityStatusError(SECURITY_STATUS status);
94#include "sspi_winpr.h"