20#ifndef WINPR_SSPI_PRIVATE_H
21#define WINPR_SSPI_PRIVATE_H
23#include <winpr/sspi.h>
25#define SCHANNEL_CB_MAX_TOKEN 0x00006000
27#define SSPI_CREDENTIALS_PASSWORD_HASH 0x00000001
29#define SSPI_CREDENTIALS_HASH_LENGTH_OFFSET 512
35 SEC_GET_KEY_FN pGetKeyFn;
36 void* pvGetKeyArgument;
37 SEC_WINNT_AUTH_IDENTITY identity;
48void sspi_SecureHandleInvalidate(
SecHandle* handle);
49void* sspi_SecureHandleGetLowerPointer(
SecHandle* handle);
50void sspi_SecureHandleSetLowerPointer(
SecHandle* handle,
void* pointer);
51void* sspi_SecureHandleGetUpperPointer(
SecHandle* handle);
52void sspi_SecureHandleSetUpperPointer(
SecHandle* handle,
void* pointer);
53void sspi_SecureHandleFree(
SecHandle* handle);
55enum SecurityFunctionTableIndex
57 EnumerateSecurityPackagesIndex = 1,
59 QueryCredentialsAttributesIndex = 3,
60 AcquireCredentialsHandleIndex = 4,
61 FreeCredentialsHandleIndex = 5,
63 InitializeSecurityContextIndex = 7,
64 AcceptSecurityContextIndex = 8,
65 CompleteAuthTokenIndex = 9,
66 DeleteSecurityContextIndex = 10,
67 ApplyControlTokenIndex = 11,
68 QueryContextAttributesIndex = 12,
69 ImpersonateSecurityContextIndex = 13,
70 RevertSecurityContextIndex = 14,
71 MakeSignatureIndex = 15,
72 VerifySignatureIndex = 16,
73 FreeContextBufferIndex = 17,
74 QuerySecurityPackageInfoIndex = 18,
77 ExportSecurityContextIndex = 21,
78 ImportSecurityContextIndex = 22,
79 AddCredentialsIndex = 23,
81 QuerySecurityContextTokenIndex = 25,
82 EncryptMessageIndex = 26,
83 DecryptMessageIndex = 27,
84 SetContextAttributesIndex = 28,
85 SetCredentialsAttributesIndex = 29
88BOOL IsSecurityStatusError(SECURITY_STATUS status);
91#include "sspi_winpr.h"