2 Unix SMB/CIFS implementation.
3 Infrastructure for async SMB client requests
4 Copyright (C) Volker Lendecke 2008
5 Copyright (C) Stefan Metzmacher 2011
7 This program is free software; you can redistribute it and/or modify
8 it under the terms of the GNU General Public License as published by
9 the Free Software Foundation; either version 3 of the License, or
10 (at your option) any later version.
12 This program is distributed in the hope that it will be useful,
13 but WITHOUT ANY WARRANTY; without even the implied warranty of
14 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 GNU General Public License for more details.
17 You should have received a copy of the GNU General Public License
18 along with this program. If not, see <http://www.gnu.org/licenses/>.
21 #ifndef _SMBXCLI_BASE_H_
22 #define _SMBXCLI_BASE_H_
25 struct smbXcli_session
;
27 struct smb_trans_enc_state
;
30 struct smb2_create_blobs
;
32 struct smbXcli_conn
*smbXcli_conn_create(TALLOC_CTX
*mem_ctx
,
34 const char *remote_name
,
35 enum smb_signing_setting signing_state
,
36 uint32_t smb1_capabilities
,
37 struct GUID
*client_guid
,
38 uint32_t smb2_capabilities
);
40 bool smbXcli_conn_is_connected(struct smbXcli_conn
*conn
);
41 void smbXcli_conn_disconnect(struct smbXcli_conn
*conn
, NTSTATUS status
);
43 bool smbXcli_conn_has_async_calls(struct smbXcli_conn
*conn
);
45 enum protocol_types
smbXcli_conn_protocol(struct smbXcli_conn
*conn
);
46 bool smbXcli_conn_use_unicode(struct smbXcli_conn
*conn
);
48 void smbXcli_conn_set_sockopt(struct smbXcli_conn
*conn
, const char *options
);
49 const struct sockaddr_storage
*smbXcli_conn_local_sockaddr(struct smbXcli_conn
*conn
);
50 const struct sockaddr_storage
*smbXcli_conn_remote_sockaddr(struct smbXcli_conn
*conn
);
51 const char *smbXcli_conn_remote_name(struct smbXcli_conn
*conn
);
53 uint16_t smbXcli_conn_max_requests(struct smbXcli_conn
*conn
);
54 NTTIME
smbXcli_conn_server_system_time(struct smbXcli_conn
*conn
);
55 const DATA_BLOB
*smbXcli_conn_server_gss_blob(struct smbXcli_conn
*conn
);
56 const struct GUID
*smbXcli_conn_server_guid(struct smbXcli_conn
*conn
);
58 struct tevent_req
*smbXcli_conn_samba_suicide_send(TALLOC_CTX
*mem_ctx
,
59 struct tevent_context
*ev
,
60 struct smbXcli_conn
*conn
,
62 NTSTATUS
smbXcli_conn_samba_suicide_recv(struct tevent_req
*req
);
63 NTSTATUS
smbXcli_conn_samba_suicide(struct smbXcli_conn
*conn
,
66 void smbXcli_req_unset_pending(struct tevent_req
*req
);
67 bool smbXcli_req_set_pending(struct tevent_req
*req
);
69 uint32_t smb1cli_conn_capabilities(struct smbXcli_conn
*conn
);
70 uint32_t smb1cli_conn_max_xmit(struct smbXcli_conn
*conn
);
71 uint32_t smb1cli_conn_server_session_key(struct smbXcli_conn
*conn
);
72 const uint8_t *smb1cli_conn_server_challenge(struct smbXcli_conn
*conn
);
73 uint16_t smb1cli_conn_server_security_mode(struct smbXcli_conn
*conn
);
74 bool smb1cli_conn_server_readbraw(struct smbXcli_conn
*conn
);
75 bool smb1cli_conn_server_writebraw(struct smbXcli_conn
*conn
);
76 bool smb1cli_conn_server_lockread(struct smbXcli_conn
*conn
);
77 bool smb1cli_conn_server_writeunlock(struct smbXcli_conn
*conn
);
78 int smb1cli_conn_server_time_zone(struct smbXcli_conn
*conn
);
80 bool smb1cli_conn_activate_signing(struct smbXcli_conn
*conn
,
81 const DATA_BLOB user_session_key
,
82 const DATA_BLOB response
);
83 bool smb1cli_conn_check_signing(struct smbXcli_conn
*conn
,
84 const uint8_t *buf
, uint32_t seqnum
);
85 bool smb1cli_conn_signing_is_active(struct smbXcli_conn
*conn
);
87 void smb1cli_conn_set_encryption(struct smbXcli_conn
*conn
,
88 struct smb_trans_enc_state
*es
);
89 bool smb1cli_conn_encryption_on(struct smbXcli_conn
*conn
);
91 bool smb1cli_is_andx_req(uint8_t cmd
);
92 size_t smb1cli_req_wct_ofs(struct tevent_req
**reqs
, int num_reqs
);
94 uint16_t smb1cli_req_mid(struct tevent_req
*req
);
95 void smb1cli_req_set_mid(struct tevent_req
*req
, uint16_t mid
);
97 uint32_t smb1cli_req_seqnum(struct tevent_req
*req
);
98 void smb1cli_req_set_seqnum(struct tevent_req
*req
, uint32_t seqnum
);
100 struct smb1cli_req_expected_response
{
105 struct tevent_req
*smb1cli_req_create(TALLOC_CTX
*mem_ctx
,
106 struct tevent_context
*ev
,
107 struct smbXcli_conn
*conn
,
109 uint8_t additional_flags
,
111 uint16_t additional_flags2
,
112 uint16_t clear_flags2
,
113 uint32_t timeout_msec
,
115 struct smbXcli_tcon
*tcon
,
116 struct smbXcli_session
*session
,
117 uint8_t wct
, uint16_t *vwv
,
119 struct iovec
*bytes_iov
);
120 NTSTATUS
smb1cli_req_chain_submit(struct tevent_req
**reqs
, int num_reqs
);
122 struct tevent_req
*smb1cli_req_send(TALLOC_CTX
*mem_ctx
,
123 struct tevent_context
*ev
,
124 struct smbXcli_conn
*conn
,
126 uint8_t additional_flags
,
128 uint16_t additional_flags2
,
129 uint16_t clear_flags2
,
130 uint32_t timeout_msec
,
132 struct smbXcli_tcon
*tcon
,
133 struct smbXcli_session
*session
,
134 uint8_t wct
, uint16_t *vwv
,
136 const uint8_t *bytes
);
137 NTSTATUS
smb1cli_req_recv(struct tevent_req
*req
,
143 uint32_t *pvwv_offset
,
144 uint32_t *pnum_bytes
,
146 uint32_t *pbytes_offset
,
148 const struct smb1cli_req_expected_response
*expected
,
149 size_t num_expected
);
151 struct tevent_req
*smb1cli_trans_send(
152 TALLOC_CTX
*mem_ctx
, struct tevent_context
*ev
,
153 struct smbXcli_conn
*conn
, uint8_t cmd
,
154 uint8_t additional_flags
, uint8_t clear_flags
,
155 uint16_t additional_flags2
, uint16_t clear_flags2
,
156 uint32_t timeout_msec
,
158 struct smbXcli_tcon
*tcon
,
159 struct smbXcli_session
*session
,
160 const char *pipe_name
, uint16_t fid
, uint16_t function
, int flags
,
161 uint16_t *setup
, uint8_t num_setup
, uint8_t max_setup
,
162 uint8_t *param
, uint32_t num_param
, uint32_t max_param
,
163 uint8_t *data
, uint32_t num_data
, uint32_t max_data
);
164 NTSTATUS
smb1cli_trans_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
165 uint16_t *recv_flags2
,
166 uint16_t **setup
, uint8_t min_setup
,
168 uint8_t **param
, uint32_t min_param
,
170 uint8_t **data
, uint32_t min_data
,
172 NTSTATUS
smb1cli_trans(TALLOC_CTX
*mem_ctx
, struct smbXcli_conn
*conn
,
174 uint8_t additional_flags
, uint8_t clear_flags
,
175 uint16_t additional_flags2
, uint16_t clear_flags2
,
176 uint32_t timeout_msec
,
178 struct smbXcli_tcon
*tcon
,
179 struct smbXcli_session
*session
,
180 const char *pipe_name
, uint16_t fid
, uint16_t function
,
182 uint16_t *setup
, uint8_t num_setup
, uint8_t max_setup
,
183 uint8_t *param
, uint32_t num_param
, uint32_t max_param
,
184 uint8_t *data
, uint32_t num_data
, uint32_t max_data
,
185 uint16_t *recv_flags2
,
186 uint16_t **rsetup
, uint8_t min_rsetup
, uint8_t *num_rsetup
,
187 uint8_t **rparam
, uint32_t min_rparam
, uint32_t *num_rparam
,
188 uint8_t **rdata
, uint32_t min_rdata
, uint32_t *num_rdata
);
190 uint32_t smb2cli_conn_server_capabilities(struct smbXcli_conn
*conn
);
191 uint16_t smb2cli_conn_server_security_mode(struct smbXcli_conn
*conn
);
192 uint32_t smb2cli_conn_max_trans_size(struct smbXcli_conn
*conn
);
193 uint32_t smb2cli_conn_max_read_size(struct smbXcli_conn
*conn
);
194 uint32_t smb2cli_conn_max_write_size(struct smbXcli_conn
*conn
);
195 void smb2cli_conn_set_max_credits(struct smbXcli_conn
*conn
,
196 uint16_t max_credits
);
198 struct tevent_req
*smb2cli_req_create(TALLOC_CTX
*mem_ctx
,
199 struct tevent_context
*ev
,
200 struct smbXcli_conn
*conn
,
202 uint32_t additional_flags
,
203 uint32_t clear_flags
,
204 uint32_t timeout_msec
,
205 struct smbXcli_tcon
*tcon
,
206 struct smbXcli_session
*session
,
207 const uint8_t *fixed
,
211 void smb2cli_req_set_notify_async(struct tevent_req
*req
);
212 NTSTATUS
smb2cli_req_compound_submit(struct tevent_req
**reqs
,
214 void smb2cli_req_set_credit_charge(struct tevent_req
*req
, uint16_t charge
);
216 struct smb2cli_req_expected_response
{
221 struct tevent_req
*smb2cli_req_send(TALLOC_CTX
*mem_ctx
,
222 struct tevent_context
*ev
,
223 struct smbXcli_conn
*conn
,
225 uint32_t additional_flags
,
226 uint32_t clear_flags
,
227 uint32_t timeout_msec
,
228 struct smbXcli_tcon
*tcon
,
229 struct smbXcli_session
*session
,
230 const uint8_t *fixed
,
234 NTSTATUS
smb2cli_req_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
236 const struct smb2cli_req_expected_response
*expected
,
237 size_t num_expected
);
239 struct tevent_req
*smbXcli_negprot_send(TALLOC_CTX
*mem_ctx
,
240 struct tevent_context
*ev
,
241 struct smbXcli_conn
*conn
,
242 uint32_t timeout_msec
,
243 enum protocol_types min_protocol
,
244 enum protocol_types max_protocol
);
245 NTSTATUS
smbXcli_negprot_recv(struct tevent_req
*req
);
246 NTSTATUS
smbXcli_negprot(struct smbXcli_conn
*conn
,
247 uint32_t timeout_msec
,
248 enum protocol_types min_protocol
,
249 enum protocol_types max_protocol
);
251 struct smbXcli_session
*smbXcli_session_create(TALLOC_CTX
*mem_ctx
,
252 struct smbXcli_conn
*conn
);
253 NTSTATUS
smbXcli_session_application_key(struct smbXcli_session
*session
,
256 void smbXcli_session_set_disconnect_expired(struct smbXcli_session
*session
);
257 uint16_t smb1cli_session_current_id(struct smbXcli_session
* session
);
258 void smb1cli_session_set_id(struct smbXcli_session
* session
,
259 uint16_t session_id
);
260 NTSTATUS
smb1cli_session_set_session_key(struct smbXcli_session
*session
,
261 const DATA_BLOB _session_key
);
262 NTSTATUS
smb1cli_session_protect_session_key(struct smbXcli_session
*session
);
263 uint8_t smb2cli_session_security_mode(struct smbXcli_session
*session
);
264 uint64_t smb2cli_session_current_id(struct smbXcli_session
*session
);
265 uint16_t smb2cli_session_get_flags(struct smbXcli_session
*session
);
266 void smb2cli_session_set_id_and_flags(struct smbXcli_session
*session
,
268 uint16_t session_flags
);
269 void smb2cli_session_increment_channel_sequence(struct smbXcli_session
*session
);
270 NTSTATUS
smb2cli_session_set_session_key(struct smbXcli_session
*session
,
271 const DATA_BLOB session_key
,
272 const struct iovec
*recv_iov
);
273 NTSTATUS
smb2cli_session_create_channel(TALLOC_CTX
*mem_ctx
,
274 struct smbXcli_session
*session1
,
275 struct smbXcli_conn
*conn
,
276 struct smbXcli_session
**_session2
);
277 NTSTATUS
smb2cli_session_set_channel_key(struct smbXcli_session
*session
,
278 const DATA_BLOB channel_key
,
279 const struct iovec
*recv_iov
);
281 struct smbXcli_tcon
*smbXcli_tcon_create(TALLOC_CTX
*mem_ctx
);
282 uint16_t smb1cli_tcon_current_id(struct smbXcli_tcon
*tcon
);
283 void smb1cli_tcon_set_id(struct smbXcli_tcon
*tcon
, uint16_t tcon_id
);
284 bool smb1cli_tcon_set_values(struct smbXcli_tcon
*tcon
,
286 uint16_t optional_support
,
287 uint32_t maximal_access
,
288 uint32_t guest_maximal_access
,
290 const char *fs_type
);
291 uint32_t smb2cli_tcon_current_id(struct smbXcli_tcon
*tcon
);
292 uint32_t smb2cli_tcon_capabilities(struct smbXcli_tcon
*tcon
);
293 void smb2cli_tcon_set_values(struct smbXcli_tcon
*tcon
,
294 struct smbXcli_session
*session
,
298 uint32_t capabilities
,
299 uint32_t maximal_access
);
301 struct tevent_req
*smb2cli_session_setup_send(TALLOC_CTX
*mem_ctx
,
302 struct tevent_context
*ev
,
303 struct smbXcli_conn
*conn
,
304 uint32_t timeout_msec
,
305 struct smbXcli_session
*session
,
307 uint32_t in_capabilities
,
309 uint64_t in_previous_session_id
,
310 const DATA_BLOB
*in_security_buffer
);
311 NTSTATUS
smb2cli_session_setup_recv(struct tevent_req
*req
,
313 struct iovec
**recv_iov
,
314 DATA_BLOB
*out_security_buffer
);
316 struct tevent_req
*smb2cli_logoff_send(TALLOC_CTX
*mem_ctx
,
317 struct tevent_context
*ev
,
318 struct smbXcli_conn
*conn
,
319 uint32_t timeout_msec
,
320 struct smbXcli_session
*session
);
321 NTSTATUS
smb2cli_logoff_recv(struct tevent_req
*req
);
322 NTSTATUS
smb2cli_logoff(struct smbXcli_conn
*conn
,
323 uint32_t timeout_msec
,
324 struct smbXcli_session
*session
);
326 struct tevent_req
*smb2cli_create_send(
328 struct tevent_context
*ev
,
329 struct smbXcli_conn
*conn
,
330 uint32_t timeout_msec
,
331 struct smbXcli_session
*session
,
332 struct smbXcli_tcon
*tcon
,
333 const char *filename
,
334 uint8_t oplock_level
, /* SMB2_OPLOCK_LEVEL_* */
335 uint32_t impersonation_level
, /* SMB2_IMPERSONATION_* */
336 uint32_t desired_access
,
337 uint32_t file_attributes
,
338 uint32_t share_access
,
339 uint32_t create_disposition
,
340 uint32_t create_options
,
341 struct smb2_create_blobs
*blobs
);
342 NTSTATUS
smb2cli_create_recv(struct tevent_req
*req
,
343 uint64_t *fid_persistent
,
344 uint64_t *fid_volatile
);
345 NTSTATUS
smb2cli_create(struct smbXcli_conn
*conn
,
346 uint32_t timeout_msec
,
347 struct smbXcli_session
*session
,
348 struct smbXcli_tcon
*tcon
,
349 const char *filename
,
350 uint8_t oplock_level
, /* SMB2_OPLOCK_LEVEL_* */
351 uint32_t impersonation_level
, /* SMB2_IMPERSONATION_* */
352 uint32_t desired_access
,
353 uint32_t file_attributes
,
354 uint32_t share_access
,
355 uint32_t create_disposition
,
356 uint32_t create_options
,
357 struct smb2_create_blobs
*blobs
,
358 uint64_t *fid_persistent
,
359 uint64_t *fid_volatile
);
361 struct tevent_req
*smb2cli_close_send(TALLOC_CTX
*mem_ctx
,
362 struct tevent_context
*ev
,
363 struct smbXcli_conn
*conn
,
364 uint32_t timeout_msec
,
365 struct smbXcli_session
*session
,
366 struct smbXcli_tcon
*tcon
,
368 uint64_t fid_persistent
,
369 uint64_t fid_volatile
);
370 NTSTATUS
smb2cli_close_recv(struct tevent_req
*req
);
371 NTSTATUS
smb2cli_close(struct smbXcli_conn
*conn
,
372 uint32_t timeout_msec
,
373 struct smbXcli_session
*session
,
374 struct smbXcli_tcon
*tcon
,
376 uint64_t fid_persistent
,
377 uint64_t fid_volatile
);
379 struct tevent_req
*smb2cli_read_send(TALLOC_CTX
*mem_ctx
,
380 struct tevent_context
*ev
,
381 struct smbXcli_conn
*conn
,
382 uint32_t timeout_msec
,
383 struct smbXcli_session
*session
,
384 struct smbXcli_tcon
*tcon
,
387 uint64_t fid_persistent
,
388 uint64_t fid_volatile
,
389 uint64_t minimum_count
,
390 uint64_t remaining_bytes
);
391 NTSTATUS
smb2cli_read_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
392 uint8_t **data
, uint32_t *data_length
);
393 NTSTATUS
smb2cli_read(struct smbXcli_conn
*conn
,
394 uint32_t timeout_msec
,
395 struct smbXcli_session
*session
,
396 struct smbXcli_tcon
*tcon
,
399 uint64_t fid_persistent
,
400 uint64_t fid_volatile
,
401 uint64_t minimum_count
,
402 uint64_t remaining_bytes
,
405 uint32_t *data_length
);
407 struct tevent_req
*smb2cli_write_send(TALLOC_CTX
*mem_ctx
,
408 struct tevent_context
*ev
,
409 struct smbXcli_conn
*conn
,
410 uint32_t timeout_msec
,
411 struct smbXcli_session
*session
,
412 struct smbXcli_tcon
*tcon
,
415 uint64_t fid_persistent
,
416 uint64_t fid_volatile
,
417 uint32_t remaining_bytes
,
419 const uint8_t *data
);
420 NTSTATUS
smb2cli_write_recv(struct tevent_req
*req
);
421 NTSTATUS
smb2cli_write(struct smbXcli_conn
*conn
,
422 uint32_t timeout_msec
,
423 struct smbXcli_session
*session
,
424 struct smbXcli_tcon
*tcon
,
427 uint64_t fid_persistent
,
428 uint64_t fid_volatile
,
429 uint32_t remaining_bytes
,
431 const uint8_t *data
);
433 struct tevent_req
*smb2cli_flush_send(TALLOC_CTX
*mem_ctx
,
434 struct tevent_context
*ev
,
435 struct smbXcli_conn
*conn
,
436 uint32_t timeout_msec
,
437 struct smbXcli_session
*session
,
438 struct smbXcli_tcon
*tcon
,
439 uint64_t fid_persistent
,
440 uint64_t fid_volatile
);
441 NTSTATUS
smb2cli_flush_recv(struct tevent_req
*req
);
442 NTSTATUS
smb2cli_flush(struct smbXcli_conn
*conn
,
443 uint32_t timeout_msec
,
444 struct smbXcli_session
*session
,
445 struct smbXcli_tcon
*tcon
,
446 uint64_t fid_persistent
,
447 uint64_t fid_volatile
);
449 struct tevent_req
*smb2cli_set_info_send(TALLOC_CTX
*mem_ctx
,
450 struct tevent_context
*ev
,
451 struct smbXcli_conn
*conn
,
452 uint32_t timeout_msec
,
453 struct smbXcli_session
*session
,
454 struct smbXcli_tcon
*tcon
,
455 uint8_t in_info_type
,
456 uint8_t in_file_info_class
,
457 const DATA_BLOB
*in_input_buffer
,
458 uint32_t in_additional_info
,
459 uint64_t in_fid_persistent
,
460 uint64_t in_fid_volatile
);
461 NTSTATUS
smb2cli_set_info_recv(struct tevent_req
*req
);
462 NTSTATUS
smb2cli_set_info(struct smbXcli_conn
*conn
,
463 uint32_t timeout_msec
,
464 struct smbXcli_session
*session
,
465 struct smbXcli_tcon
*tcon
,
466 uint8_t in_info_type
,
467 uint8_t in_file_info_class
,
468 const DATA_BLOB
*in_input_buffer
,
469 uint32_t in_additional_info
,
470 uint64_t in_fid_persistent
,
471 uint64_t in_fid_volatile
);
473 struct tevent_req
*smb2cli_query_info_send(TALLOC_CTX
*mem_ctx
,
474 struct tevent_context
*ev
,
475 struct smbXcli_conn
*conn
,
476 uint32_t timeout_msec
,
477 struct smbXcli_session
*session
,
478 struct smbXcli_tcon
*tcon
,
479 uint8_t in_info_type
,
480 uint8_t in_file_info_class
,
481 uint32_t in_max_output_length
,
482 const DATA_BLOB
*in_input_buffer
,
483 uint32_t in_additional_info
,
485 uint64_t in_fid_persistent
,
486 uint64_t in_fid_volatile
);
487 NTSTATUS
smb2cli_query_info_recv(struct tevent_req
*req
,
489 DATA_BLOB
*out_output_buffer
);
490 NTSTATUS
smb2cli_query_info(struct smbXcli_conn
*conn
,
491 uint32_t timeout_msec
,
492 struct smbXcli_session
*session
,
493 struct smbXcli_tcon
*tcon
,
494 uint8_t in_info_type
,
495 uint8_t in_file_info_class
,
496 uint32_t in_max_output_length
,
497 const DATA_BLOB
*in_input_buffer
,
498 uint32_t in_additional_info
,
500 uint64_t in_fid_persistent
,
501 uint64_t in_fid_volatile
,
503 DATA_BLOB
*out_output_buffer
);
505 struct tevent_req
*smb2cli_query_directory_send(TALLOC_CTX
*mem_ctx
,
506 struct tevent_context
*ev
,
507 struct smbXcli_conn
*conn
,
508 uint32_t timeout_msec
,
509 struct smbXcli_session
*session
,
510 struct smbXcli_tcon
*tcon
,
514 uint64_t fid_persistent
,
515 uint64_t fid_volatile
,
517 uint32_t outbuf_len
);
518 NTSTATUS
smb2cli_query_directory_recv(struct tevent_req
*req
,
521 uint32_t *data_length
);
522 NTSTATUS
smb2cli_query_directory(struct smbXcli_conn
*conn
,
523 uint32_t timeout_msec
,
524 struct smbXcli_session
*session
,
525 struct smbXcli_tcon
*tcon
,
529 uint64_t fid_persistent
,
530 uint64_t fid_volatile
,
535 uint32_t *data_length
);
537 struct tevent_req
*smb2cli_ioctl_send(TALLOC_CTX
*mem_ctx
,
538 struct tevent_context
*ev
,
539 struct smbXcli_conn
*conn
,
540 uint32_t timeout_msec
,
541 struct smbXcli_session
*session
,
542 struct smbXcli_tcon
*tcon
,
543 uint64_t in_fid_persistent
,
544 uint64_t in_fid_volatile
,
545 uint32_t in_ctl_code
,
546 uint32_t in_max_input_length
,
547 const DATA_BLOB
*in_input_buffer
,
548 uint32_t in_max_output_length
,
549 const DATA_BLOB
*in_output_buffer
,
551 NTSTATUS
smb2cli_ioctl_recv(struct tevent_req
*req
,
553 DATA_BLOB
*out_input_buffer
,
554 DATA_BLOB
*out_output_buffer
);
555 NTSTATUS
smb2cli_ioctl(struct smbXcli_conn
*conn
,
556 uint32_t timeout_msec
,
557 struct smbXcli_session
*session
,
558 struct smbXcli_tcon
*tcon
,
559 uint64_t in_fid_persistent
,
560 uint64_t in_fid_volatile
,
561 uint32_t in_ctl_code
,
562 uint32_t in_max_input_length
,
563 const DATA_BLOB
*in_input_buffer
,
564 uint32_t in_max_output_length
,
565 const DATA_BLOB
*in_output_buffer
,
568 DATA_BLOB
*out_input_buffer
,
569 DATA_BLOB
*out_output_buffer
);
571 #endif /* _SMBXCLI_BASE_H_ */