2 Unix SMB/CIFS implementation.
6 Copyright (C) Andrew Tridgell 2005
8 This program is free software; you can redistribute it and/or modify
9 it under the terms of the GNU General Public License as published by
10 the Free Software Foundation; either version 3 of the License, or
11 (at your option) any later version.
13 This program is distributed in the hope that it will be useful,
14 but WITHOUT ANY WARRANTY; without even the implied warranty of
15 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 GNU General Public License for more details.
18 You should have received a copy of the GNU General Public License
19 along with this program. If not, see <http://www.gnu.org/licenses/>.
22 #include "libcli/raw/interfaces.h"
26 uint16_t dialect_count; /* size of dialects array */
27 uint16_t security_mode; /* 0==signing disabled
30 uint32_t capabilities;
31 struct GUID client_guid;
36 /* static body buffer 64 (0x40) bytes */
37 /* uint16_t buffer_code; 0x41 = 0x40 + 1 */
38 uint16_t security_mode; /* SMB2_NEGOTIATE_SIGNING_* */
39 uint16_t dialect_revision;
41 struct GUID server_guid;
42 uint32_t capabilities;
43 uint32_t max_transact_size;
44 uint32_t max_read_size;
45 uint32_t max_write_size;
47 NTTIME server_start_time;
48 /* uint16_t secblob_ofs */
49 /* uint16_t secblob_size */
56 #define SMB2_GETINFO_FILE 0x01
57 #define SMB2_GETINFO_FS 0x02
58 #define SMB2_GETINFO_SECURITY 0x03
59 #define SMB2_GETINFO_QUOTA 0x04
61 #define SMB2_GETINFO_ADD_OWNER_SECURITY 0x01
62 #define SMB2_GETINFO_ADD_GROUP_SECURITY 0x02
63 #define SMB2_GETINFO_ADD_DACL_SECURITY 0x04
64 #define SMB2_GETINFO_ADD_SACL_SECURITY 0x08
65 #define SMB2_GETINFO_ADD_LABEL_SECURITY 0x10
67 /* NOTE! the getinfo fs and file levels exactly match up with the
68 'passthru' SMB levels, which are levels >= 1000. The SMB2 client
69 lib uses the names from the libcli/raw/ library */
73 /* static body buffer 40 (0x28) bytes */
74 /* uint16_t buffer_code; 0x29 = 0x28 + 1 */
77 uint32_t output_buffer_length;
78 /* uint32_t input_buffer_offset; */
80 uint32_t input_buffer_length;
81 uint32_t additional_information; /* SMB2_GETINFO_ADD_* */
82 uint32_t getinfo_flags; /* level specific */
83 union smb_handle file;
88 /* static body buffer 8 (0x08) bytes */
89 /* uint16_t buffer_code; 0x09 = 0x08 + 1 */
90 /* uint16_t blob_ofs; */
91 /* uint16_t blob_size; */
102 union smb_handle file;
107 struct cli_credentials;
108 struct tevent_context;
109 struct resolve_context;
110 struct gensec_settings;
111 #include "libcli/smb2/smb2_proto.h"