2
* FreeRDP: A Remote Desktop Protocol Implementation
5
* Copyright 2012 Fujitsu Technology Solutions GmbH
6
* Copyright 2012 Dmitrij Jasnov <dmitrij.jasnov@ts.fujitsu.com>
7
* Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
9
* Licensed under the Apache License, Version 2.0 (the "License");
10
* you may not use this file except in compliance with the License.
11
* You may obtain a copy of the License at
13
* http://www.apache.org/licenses/LICENSE-2.0
15
* Unless required by applicable law or agreed to in writing, software
16
* distributed under the License is distributed on an "AS IS" BASIS,
17
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
18
* See the License for the specific language governing permissions and
19
* limitations under the License.
22
#ifndef FREERDP_CORE_NTLM_H
23
#define FREERDP_CORE_NTLM_H
25
typedef struct rdp_ntlm rdpNtlm;
26
typedef struct rdp_ntlm_http rdpNtlmHttp;
29
#include "../transport.h"
35
#include <winpr/sspi.h>
36
#include <freerdp/types.h>
37
#include <freerdp/settings.h>
38
#include <freerdp/crypto/tls.h>
39
#include <freerdp/crypto/crypto.h>
40
#include <freerdp/utils/debug.h>
42
#include <winpr/sspi.h>
43
#include <winpr/print.h>
44
#include <winpr/stream.h>
55
SecBuffer inputBuffer[2];
56
SecBuffer outputBuffer[2];
59
LPTSTR ServicePrincipalName;
60
SecBufferDesc inputBufferDesc;
61
SecBufferDesc outputBufferDesc;
62
CredHandle credentials;
64
SecPkgInfo* pPackageInfo;
65
SecurityFunctionTable* table;
66
SEC_WINNT_AUTH_IDENTITY identity;
67
SecPkgContext_Sizes ContextSizes;
68
SecPkgContext_Bindings* Bindings;
77
BOOL ntlm_authenticate(rdpNtlm* ntlm);
79
BOOL ntlm_client_init(rdpNtlm* ntlm, BOOL confidentiality, char* user,
80
char* domain, char* password, SecPkgContext_Bindings* Bindings);
81
void ntlm_client_uninit(rdpNtlm* ntlm);
83
BOOL ntlm_client_make_spn(rdpNtlm* ntlm, LPCTSTR ServiceClass, char* hostname);
85
rdpNtlm* ntlm_new(void);
86
void ntlm_free(rdpNtlm* ntlm);
88
#endif /* FREERDP_CORE_NTLM_H */