s4:libcli/smb2: remove unused elements from smb2_tree
[Samba/gebeck_regimport.git] / source4 / libcli / smb2 / smb2_calls.h
blobbea0573c26d967b2fcee9786f1f3d7e0968a699b
1 /*
2 Unix SMB/CIFS implementation.
4 SMB2 client calls
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"
24 struct smb2_negprot {
25 struct {
26 uint16_t dialect_count; /* size of dialects array */
27 uint16_t security_mode; /* 0==signing disabled
28 1==signing enabled */
29 uint16_t reserved;
30 uint32_t capabilities;
31 struct GUID client_guid;
32 NTTIME start_time;
33 uint16_t *dialects;
34 } in;
35 struct {
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;
40 uint16_t reserved;
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;
46 NTTIME system_time;
47 NTTIME server_start_time;
48 /* uint16_t secblob_ofs */
49 /* uint16_t secblob_size */
50 uint32_t reserved2;
51 DATA_BLOB secblob;
52 } out;
55 /* NOTE! the getinfo fs and file levels exactly match up with the
56 'passthru' SMB levels, which are levels >= 1000. The SMB2 client
57 lib uses the names from the libcli/raw/ library */
59 struct smb2_getinfo {
60 struct {
61 /* static body buffer 40 (0x28) bytes */
62 /* uint16_t buffer_code; 0x29 = 0x28 + 1 */
63 uint8_t info_type;
64 uint8_t info_class;
65 uint32_t output_buffer_length;
66 /* uint32_t input_buffer_offset; */
67 uint32_t reserved;
68 uint32_t input_buffer_length;
69 uint32_t additional_information; /* SMB2_GETINFO_ADD_* */
70 uint32_t getinfo_flags; /* level specific */
71 union smb_handle file;
72 DATA_BLOB blob;
73 } in;
75 struct {
76 /* static body buffer 8 (0x08) bytes */
77 /* uint16_t buffer_code; 0x09 = 0x08 + 1 */
78 /* uint16_t blob_ofs; */
79 /* uint16_t blob_size; */
81 /* dynamic body */
82 DATA_BLOB blob;
83 } out;
86 struct smb2_setinfo {
87 struct {
88 uint16_t level;
89 uint32_t flags;
90 union smb_handle file;
91 DATA_BLOB blob;
92 } in;
95 struct cli_credentials;
96 struct tevent_context;
97 struct resolve_context;
98 struct gensec_settings;
99 #include "libcli/smb2/smb2_proto.h"