FreeRDP
libwinpr/sspi/sspi.h File Reference
#include <winpr/sspi.h>
#include "sspi_gss.h"
#include "sspi_winpr.h"
This graph shows which files directly or indirectly include this file:

Data Structures

struct  SSPI_CREDENTIALS
 

Macros

#define SCHANNEL_CB_MAX_TOKEN   0x00006000
 
#define SSPI_CREDENTIALS_PASSWORD_HASH   0x00000001
 
#define SSPI_CREDENTIALS_HASH_LENGTH_OFFSET   512
 

Enumerations

enum  SecurityFunctionTableIndex {
  EnumerateSecurityPackagesIndex = 1 , Reserved1Index = 2 , QueryCredentialsAttributesIndex = 3 , AcquireCredentialsHandleIndex = 4 ,
  FreeCredentialsHandleIndex = 5 , Reserved2Index = 6 , InitializeSecurityContextIndex = 7 , AcceptSecurityContextIndex = 8 ,
  CompleteAuthTokenIndex = 9 , DeleteSecurityContextIndex = 10 , ApplyControlTokenIndex = 11 , QueryContextAttributesIndex = 12 ,
  ImpersonateSecurityContextIndex = 13 , RevertSecurityContextIndex = 14 , MakeSignatureIndex = 15 , VerifySignatureIndex = 16 ,
  FreeContextBufferIndex = 17 , QuerySecurityPackageInfoIndex = 18 , Reserved3Index = 19 , Reserved4Index = 20 ,
  ExportSecurityContextIndex = 21 , ImportSecurityContextIndex = 22 , AddCredentialsIndex = 23 , Reserved8Index = 24 ,
  QuerySecurityContextTokenIndex = 25 , EncryptMessageIndex = 26 , DecryptMessageIndex = 27 , SetContextAttributesIndex = 28 ,
  SetCredentialsAttributesIndex = 29
}
 

Functions

SSPI_CREDENTIALSsspi_CredentialsNew (void)
 
void sspi_CredentialsFree (SSPI_CREDENTIALS *credentials)
 
PSecBuffer sspi_FindSecBuffer (PSecBufferDesc pMessage, ULONG BufferType)
 
SecHandlesspi_SecureHandleAlloc (void)
 
void sspi_SecureHandleInvalidate (SecHandle *handle)
 
void * sspi_SecureHandleGetLowerPointer (SecHandle *handle)
 
void sspi_SecureHandleSetLowerPointer (SecHandle *handle, void *pointer)
 
void * sspi_SecureHandleGetUpperPointer (SecHandle *handle)
 
void sspi_SecureHandleSetUpperPointer (SecHandle *handle, void *pointer)
 
void sspi_SecureHandleFree (SecHandle *handle)
 
BOOL IsSecurityStatusError (SECURITY_STATUS status)
 

Macro Definition Documentation

◆ SCHANNEL_CB_MAX_TOKEN

#define SCHANNEL_CB_MAX_TOKEN   0x00006000

WinPR: Windows Portable Runtime Security Support Provider Interface (SSPI)

Copyright 2012-2014 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

◆ SSPI_CREDENTIALS_HASH_LENGTH_OFFSET

#define SSPI_CREDENTIALS_HASH_LENGTH_OFFSET   512

◆ SSPI_CREDENTIALS_PASSWORD_HASH

#define SSPI_CREDENTIALS_PASSWORD_HASH   0x00000001

Enumeration Type Documentation

◆ SecurityFunctionTableIndex

Enumerator
EnumerateSecurityPackagesIndex 
Reserved1Index 
QueryCredentialsAttributesIndex 
AcquireCredentialsHandleIndex 
FreeCredentialsHandleIndex 
Reserved2Index 
InitializeSecurityContextIndex 
AcceptSecurityContextIndex 
CompleteAuthTokenIndex 
DeleteSecurityContextIndex 
ApplyControlTokenIndex 
QueryContextAttributesIndex 
ImpersonateSecurityContextIndex 
RevertSecurityContextIndex 
MakeSignatureIndex 
VerifySignatureIndex 
FreeContextBufferIndex 
QuerySecurityPackageInfoIndex 
Reserved3Index 
Reserved4Index 
ExportSecurityContextIndex 
ImportSecurityContextIndex 
AddCredentialsIndex 
Reserved8Index 
QuerySecurityContextTokenIndex 
EncryptMessageIndex 
DecryptMessageIndex 
SetContextAttributesIndex 
SetCredentialsAttributesIndex 

Function Documentation

◆ IsSecurityStatusError()

BOOL IsSecurityStatusError ( SECURITY_STATUS  status)
Here is the caller graph for this function:

◆ sspi_CredentialsFree()

void sspi_CredentialsFree ( SSPI_CREDENTIALS credentials)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sspi_CredentialsNew()

SSPI_CREDENTIALS* sspi_CredentialsNew ( void  )
Here is the caller graph for this function:

◆ sspi_FindSecBuffer()

PSecBuffer sspi_FindSecBuffer ( PSecBufferDesc  pMessage,
ULONG  BufferType 
)
Here is the caller graph for this function:

◆ sspi_SecureHandleAlloc()

SecHandle* sspi_SecureHandleAlloc ( void  )

◆ sspi_SecureHandleFree()

void sspi_SecureHandleFree ( SecHandle handle)
Here is the call graph for this function:

◆ sspi_SecureHandleGetLowerPointer()

void* sspi_SecureHandleGetLowerPointer ( SecHandle handle)
Here is the caller graph for this function:

◆ sspi_SecureHandleGetUpperPointer()

void* sspi_SecureHandleGetUpperPointer ( SecHandle handle)
Here is the caller graph for this function:

◆ sspi_SecureHandleInvalidate()

void sspi_SecureHandleInvalidate ( SecHandle handle)
Here is the caller graph for this function:

◆ sspi_SecureHandleSetLowerPointer()

void sspi_SecureHandleSetLowerPointer ( SecHandle handle,
void *  pointer 
)
Here is the caller graph for this function:

◆ sspi_SecureHandleSetUpperPointer()

void sspi_SecureHandleSetUpperPointer ( SecHandle handle,
void *  pointer 
)
Here is the caller graph for this function: