2 * Copyright 2005, 2006 Kai Blin
3 * Copyright 2021 Hans Leidekker for CodeWeavers
5 * This library is free software; you can redistribute it and/or
6 * modify it under the terms of the GNU Lesser General Public
7 * License as published by the Free Software Foundation; either
8 * version 2.1 of the License, or (at your option) any later version.
10 * This library is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * Lesser General Public License for more details.
15 * You should have received a copy of the GNU Lesser General Public
16 * License along with this library; if not, write to the Free Software
17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
20 #include <sys/types.h>
22 #include "wine/unixlib.h"
44 int no_cached_credentials
; /* don't try to use cached Samba credentials */
54 #define FLAG_NEGOTIATE_SIGN 0x00000010
55 #define FLAG_NEGOTIATE_SEAL 0x00000020
56 #define FLAG_NEGOTIATE_ALWAYS_SIGN 0x00008000
57 #define FLAG_NEGOTIATE_NTLM2 0x00080000
58 #define FLAG_NEGOTIATE_KEY_EXCHANGE 0x40000000
60 typedef UINT64 com_buf_ptr
;
77 struct arc4_info arc4info
;
81 char send_sign_key
[16];
82 char send_seal_key
[16];
83 char recv_sign_key
[16];
84 char recv_seal_key
[16];
85 unsigned int send_seq_no
;
86 unsigned int recv_seq_no
;
87 struct arc4_info send_arc4info
;
88 struct arc4_info recv_arc4info
;
104 struct ntlm_ctx
*ctx
;