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

Data Structures

struct  sspi_gss_data
 

Macros

#define SSPI_GSS_C_DELEG_FLAG   1
 
#define SSPI_GSS_C_MUTUAL_FLAG   2
 
#define SSPI_GSS_C_REPLAY_FLAG   4
 
#define SSPI_GSS_C_SEQUENCE_FLAG   8
 
#define SSPI_GSS_C_CONF_FLAG   16
 
#define SSPI_GSS_C_INTEG_FLAG   32
 
#define FLAG_SENDER_IS_ACCEPTOR   0x01
 
#define FLAG_WRAP_CONFIDENTIAL   0x02
 
#define FLAG_ACCEPTOR_SUBKEY   0x04
 
#define KG_USAGE_ACCEPTOR_SEAL   22
 
#define KG_USAGE_ACCEPTOR_SIGN   23
 
#define KG_USAGE_INITIATOR_SEAL   24
 
#define KG_USAGE_INITIATOR_SIGN   25
 
#define TOK_ID_AP_REQ   0x0100
 
#define TOK_ID_AP_REP   0x0200
 
#define TOK_ID_ERROR   0x0300
 
#define TOK_ID_TGT_REQ   0x0400
 
#define TOK_ID_TGT_REP   0x0401
 
#define TOK_ID_MIC   0x0404
 
#define TOK_ID_WRAP   0x0504
 
#define TOK_ID_MIC_V1   0x0101
 
#define TOK_ID_WRAP_V1   0x0201
 
#define GSS_CHECKSUM_TYPE   0x8003
 

Functions

static INLINE BOOL sspi_gss_oid_compare (const WinPrAsn1_OID *oid1, const WinPrAsn1_OID *oid2)
 
BOOL sspi_gss_wrap_token (SecBuffer *buf, const WinPrAsn1_OID *oid, uint16_t tok_id, const sspi_gss_data *token)
 
BOOL sspi_gss_unwrap_token (const SecBuffer *buf, WinPrAsn1_OID *oid, uint16_t *tok_id, sspi_gss_data *token)
 

Macro Definition Documentation

◆ FLAG_ACCEPTOR_SUBKEY

#define FLAG_ACCEPTOR_SUBKEY   0x04

◆ FLAG_SENDER_IS_ACCEPTOR

#define FLAG_SENDER_IS_ACCEPTOR   0x01

◆ FLAG_WRAP_CONFIDENTIAL

#define FLAG_WRAP_CONFIDENTIAL   0x02

◆ GSS_CHECKSUM_TYPE

#define GSS_CHECKSUM_TYPE   0x8003

◆ KG_USAGE_ACCEPTOR_SEAL

#define KG_USAGE_ACCEPTOR_SEAL   22

◆ KG_USAGE_ACCEPTOR_SIGN

#define KG_USAGE_ACCEPTOR_SIGN   23

◆ KG_USAGE_INITIATOR_SEAL

#define KG_USAGE_INITIATOR_SEAL   24

◆ KG_USAGE_INITIATOR_SIGN

#define KG_USAGE_INITIATOR_SIGN   25

◆ SSPI_GSS_C_CONF_FLAG

#define SSPI_GSS_C_CONF_FLAG   16

◆ SSPI_GSS_C_DELEG_FLAG

#define SSPI_GSS_C_DELEG_FLAG   1

◆ SSPI_GSS_C_INTEG_FLAG

#define SSPI_GSS_C_INTEG_FLAG   32

◆ SSPI_GSS_C_MUTUAL_FLAG

#define SSPI_GSS_C_MUTUAL_FLAG   2

◆ SSPI_GSS_C_REPLAY_FLAG

#define SSPI_GSS_C_REPLAY_FLAG   4

◆ SSPI_GSS_C_SEQUENCE_FLAG

#define SSPI_GSS_C_SEQUENCE_FLAG   8

◆ TOK_ID_AP_REP

#define TOK_ID_AP_REP   0x0200

◆ TOK_ID_AP_REQ

#define TOK_ID_AP_REQ   0x0100

◆ TOK_ID_ERROR

#define TOK_ID_ERROR   0x0300

◆ TOK_ID_MIC

#define TOK_ID_MIC   0x0404

◆ TOK_ID_MIC_V1

#define TOK_ID_MIC_V1   0x0101

◆ TOK_ID_TGT_REP

#define TOK_ID_TGT_REP   0x0401

◆ TOK_ID_TGT_REQ

#define TOK_ID_TGT_REQ   0x0400

◆ TOK_ID_WRAP

#define TOK_ID_WRAP   0x0504

◆ TOK_ID_WRAP_V1

#define TOK_ID_WRAP_V1   0x0201

Function Documentation

◆ sspi_gss_oid_compare()

static INLINE BOOL sspi_gss_oid_compare ( const WinPrAsn1_OID oid1,
const WinPrAsn1_OID oid2 
)
static
Here is the caller graph for this function:

◆ sspi_gss_unwrap_token()

BOOL sspi_gss_unwrap_token ( const SecBuffer buf,
WinPrAsn1_OID oid,
uint16_t *  tok_id,
sspi_gss_data token 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ sspi_gss_wrap_token()

BOOL sspi_gss_wrap_token ( SecBuffer buf,
const WinPrAsn1_OID oid,
uint16_t  tok_id,
const sspi_gss_data token 
)

FreeRDP: A Remote Desktop Protocol Implementation Generic Security Service Application Program Interface (GSSAPI)

Copyright 2015 ANSSI, Author Thomas Calderon Copyright 2015 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com Copyright 2017 Dorian Ducournau doria.nosp@m.n.du.nosp@m.courn.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.

Here is the call graph for this function:
Here is the caller graph for this function: