FreeRDP
|
#include <freerdp/config.h>
#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, size_t line) |
BOOL | ntlm_client_init (rdpNtlm *ntlm, BOOL http, LPCSTR user, LPCSTR domain, LPCSTR password, SecPkgContext_Bindings *Bindings) |
BOOL | ntlm_client_make_spn (rdpNtlm *ntlm, LPCSTR serviceClass, LPCSTR 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) |
#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 Copyright 2012 Marc-Andre Moreau ij.j asnov @ts. fujit su.c ommarca ndre .more au@g mail. 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.
|
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 |/ | | ---------—+--------— |
| No |/ ---—+----—
BOOL ntlm_client_encrypt | ( | rdpNtlm * | ntlm, |
ULONG | fQOP, | ||
SecBufferDesc * | Message, | ||
size_t | sequence | ||
) |
SSIZE_T ntlm_client_get_context_max_size | ( | rdpNtlm * | ntlm | ) |
const SecBuffer* ntlm_client_get_output_buffer | ( | rdpNtlm * | ntlm | ) |
BOOL ntlm_client_init | ( | rdpNtlm * | ntlm, |
BOOL | http, | ||
LPCSTR | user, | ||
LPCSTR | domain, | ||
LPCSTR | 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
BOOL ntlm_client_make_spn | ( | rdpNtlm * | ntlm, |
LPCSTR | serviceClass, | ||
LPCSTR | hostname | ||
) |
SSIZE_T ntlm_client_query_auth_size | ( | rdpNtlm * | ntlm | ) |
BOOL ntlm_client_set_input_buffer | ( | rdpNtlm * | ntlm, |
BOOL | copy, | ||
const void * | data, | ||
size_t | size | ||
) |
|
static |
void ntlm_free | ( | rdpNtlm * | ntlm | ) |
rdpNtlm* ntlm_new | ( | void | ) |