FreeRDP
libfreerdp/core/gateway/ntlm.c File Reference
#include <winpr/crt.h>
#include <winpr/tchar.h>
#include <winpr/dsparse.h>
#include <freerdp/log.h>
#include "http.h"
#include "ntlm.h"

Macros

#define TAG   FREERDP_TAG("core.gateway.ntlm")
 
#define cast_from_size(size)   cast_from_size_(size, __FUNCTION__, __FILE__, __LINE__)
 

Functions

static ULONG cast_from_size_ (size_t size, const char *fkt, const char *file, int line)
 
BOOL ntlm_client_init (rdpNtlm *ntlm, BOOL http, LPCTSTR user, LPCTSTR domain, LPCTSTR password, SecPkgContext_Bindings *Bindings)
 
BOOL ntlm_client_make_spn (rdpNtlm *ntlm, LPCTSTR ServiceClass, LPCTSTR hostname)
 
BOOL ntlm_authenticate (rdpNtlm *ntlm, BOOL *pbContinueNeeded)
 
static void ntlm_client_uninit (rdpNtlm *ntlm)
 
rdpNtlm * ntlm_new (void)
 
void ntlm_free (rdpNtlm *ntlm)
 
SSIZE_T ntlm_client_get_context_max_size (rdpNtlm *ntlm)
 
SSIZE_T ntlm_client_query_auth_size (rdpNtlm *ntlm)
 
BOOL ntlm_client_encrypt (rdpNtlm *ntlm, ULONG fQOP, SecBufferDesc *Message, size_t sequence)
 
BOOL ntlm_client_set_input_buffer (rdpNtlm *ntlm, BOOL copy, const void *data, size_t size)
 
const SecBuffer * ntlm_client_get_output_buffer (rdpNtlm *ntlm)
 

Macro Definition Documentation

#define cast_from_size (   size)    cast_from_size_(size, __FUNCTION__, __FILE__, __LINE__)
#define TAG   FREERDP_TAG("core.gateway.ntlm")

FreeRDP: A Remote Desktop Protocol Implementation NTLM over HTTP

Copyright 2012 Fujitsu Technology Solutions GmbH Copyright 2012 Dmitrij Jasnov dmitr.nosp@m.ij.j.nosp@m.asnov.nosp@m.@ts..nosp@m.fujit.nosp@m.su.c.nosp@m.om Copyright 2012 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.

Function Documentation

static ULONG cast_from_size_ ( size_t  size,
const char *  fkt,
const char *  file,
int  line 
)
static
BOOL ntlm_authenticate ( rdpNtlm *  ntlm,
BOOL *  pbContinueNeeded 
)

SSPI Client Ceremony


( Client Begin )

| | |/ --------—+-----------—

| AcquireCredentialsHandle |

| | |/ ----------—+-----------— +------------—> / InitializeSecurityContext / | -------------------------— | | | | | |/ ------------------------— ------—+----------— -------------------— / Receive blob from server / < Received security blob? > –Yes-> / Send blob to server / ----------—+----------— --------------------— -------------------— /|\ | | | No | Yes |/ | | ---------—+--------— |

+-------------— < Received Continue Needed > <--------------—+

| No |/ ---—+----—

( Client End )

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ntlm_client_encrypt ( rdpNtlm *  ntlm,
ULONG  fQOP,
SecBufferDesc *  Message,
size_t  sequence 
)

Here is the call graph for this function:

Here is the caller graph for this function:

SSIZE_T ntlm_client_get_context_max_size ( rdpNtlm *  ntlm)

Here is the caller graph for this function:

const SecBuffer* ntlm_client_get_output_buffer ( rdpNtlm *  ntlm)

Here is the caller graph for this function:

BOOL ntlm_client_init ( rdpNtlm *  ntlm,
BOOL  http,
LPCTSTR  user,
LPCTSTR  domain,
LPCTSTR  password,
SecPkgContext_Bindings *  Bindings 
)

flags for RPC authentication: RPC_C_AUTHN_LEVEL_PKT_INTEGRITY: ISC_REQ_USE_DCE_STYLE | ISC_REQ_DELEGATE | ISC_REQ_MUTUAL_AUTH | ISC_REQ_REPLAY_DETECT | ISC_REQ_SEQUENCE_DETECT

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ntlm_client_make_spn ( rdpNtlm *  ntlm,
LPCTSTR  ServiceClass,
LPCTSTR  hostname 
)

Here is the call graph for this function:

Here is the caller graph for this function:

SSIZE_T ntlm_client_query_auth_size ( rdpNtlm *  ntlm)

Here is the call graph for this function:

Here is the caller graph for this function:

BOOL ntlm_client_set_input_buffer ( rdpNtlm *  ntlm,
BOOL  copy,
const void data,
size_t  size 
)

Here is the call graph for this function:

Here is the caller graph for this function:

static void ntlm_client_uninit ( rdpNtlm *  ntlm)
static

Here is the call graph for this function:

Here is the caller graph for this function:

void ntlm_free ( rdpNtlm *  ntlm)

Here is the call graph for this function:

Here is the caller graph for this function:

rdpNtlm* ntlm_new ( void  )

Here is the caller graph for this function: