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 struct tevent_req
*smb1cli_echo_send(TALLOC_CTX
*mem_ctx
,
191 struct tevent_context
*ev
,
192 struct smbXcli_conn
*conn
,
193 uint32_t timeout_msec
,
196 NTSTATUS
smb1cli_echo_recv(struct tevent_req
*req
);
197 NTSTATUS
smb1cli_echo(struct smbXcli_conn
*conn
, uint32_t timeout_msec
,
198 uint16_t num_echos
, DATA_BLOB data
);
200 uint32_t smb2cli_conn_server_capabilities(struct smbXcli_conn
*conn
);
201 uint16_t smb2cli_conn_server_security_mode(struct smbXcli_conn
*conn
);
202 uint32_t smb2cli_conn_max_trans_size(struct smbXcli_conn
*conn
);
203 uint32_t smb2cli_conn_max_read_size(struct smbXcli_conn
*conn
);
204 uint32_t smb2cli_conn_max_write_size(struct smbXcli_conn
*conn
);
205 void smb2cli_conn_set_max_credits(struct smbXcli_conn
*conn
,
206 uint16_t max_credits
);
208 struct tevent_req
*smb2cli_req_create(TALLOC_CTX
*mem_ctx
,
209 struct tevent_context
*ev
,
210 struct smbXcli_conn
*conn
,
212 uint32_t additional_flags
,
213 uint32_t clear_flags
,
214 uint32_t timeout_msec
,
215 struct smbXcli_tcon
*tcon
,
216 struct smbXcli_session
*session
,
217 const uint8_t *fixed
,
221 void smb2cli_req_set_notify_async(struct tevent_req
*req
);
222 NTSTATUS
smb2cli_req_compound_submit(struct tevent_req
**reqs
,
224 void smb2cli_req_set_credit_charge(struct tevent_req
*req
, uint16_t charge
);
226 struct smb2cli_req_expected_response
{
231 struct tevent_req
*smb2cli_req_send(TALLOC_CTX
*mem_ctx
,
232 struct tevent_context
*ev
,
233 struct smbXcli_conn
*conn
,
235 uint32_t additional_flags
,
236 uint32_t clear_flags
,
237 uint32_t timeout_msec
,
238 struct smbXcli_tcon
*tcon
,
239 struct smbXcli_session
*session
,
240 const uint8_t *fixed
,
244 NTSTATUS
smb2cli_req_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
246 const struct smb2cli_req_expected_response
*expected
,
247 size_t num_expected
);
249 struct tevent_req
*smbXcli_negprot_send(TALLOC_CTX
*mem_ctx
,
250 struct tevent_context
*ev
,
251 struct smbXcli_conn
*conn
,
252 uint32_t timeout_msec
,
253 enum protocol_types min_protocol
,
254 enum protocol_types max_protocol
);
255 NTSTATUS
smbXcli_negprot_recv(struct tevent_req
*req
);
256 NTSTATUS
smbXcli_negprot(struct smbXcli_conn
*conn
,
257 uint32_t timeout_msec
,
258 enum protocol_types min_protocol
,
259 enum protocol_types max_protocol
);
261 struct smbXcli_session
*smbXcli_session_create(TALLOC_CTX
*mem_ctx
,
262 struct smbXcli_conn
*conn
);
263 NTSTATUS
smbXcli_session_application_key(struct smbXcli_session
*session
,
266 void smbXcli_session_set_disconnect_expired(struct smbXcli_session
*session
);
267 uint16_t smb1cli_session_current_id(struct smbXcli_session
* session
);
268 void smb1cli_session_set_id(struct smbXcli_session
* session
,
269 uint16_t session_id
);
270 NTSTATUS
smb1cli_session_set_session_key(struct smbXcli_session
*session
,
271 const DATA_BLOB _session_key
);
272 NTSTATUS
smb1cli_session_protect_session_key(struct smbXcli_session
*session
);
273 uint8_t smb2cli_session_security_mode(struct smbXcli_session
*session
);
274 uint64_t smb2cli_session_current_id(struct smbXcli_session
*session
);
275 uint16_t smb2cli_session_get_flags(struct smbXcli_session
*session
);
276 void smb2cli_session_set_id_and_flags(struct smbXcli_session
*session
,
278 uint16_t session_flags
);
279 void smb2cli_session_increment_channel_sequence(struct smbXcli_session
*session
);
280 NTSTATUS
smb2cli_session_set_session_key(struct smbXcli_session
*session
,
281 const DATA_BLOB session_key
,
282 const struct iovec
*recv_iov
);
283 NTSTATUS
smb2cli_session_create_channel(TALLOC_CTX
*mem_ctx
,
284 struct smbXcli_session
*session1
,
285 struct smbXcli_conn
*conn
,
286 struct smbXcli_session
**_session2
);
287 NTSTATUS
smb2cli_session_set_channel_key(struct smbXcli_session
*session
,
288 const DATA_BLOB channel_key
,
289 const struct iovec
*recv_iov
);
291 struct smbXcli_tcon
*smbXcli_tcon_create(TALLOC_CTX
*mem_ctx
);
292 uint16_t smb1cli_tcon_current_id(struct smbXcli_tcon
*tcon
);
293 void smb1cli_tcon_set_id(struct smbXcli_tcon
*tcon
, uint16_t tcon_id
);
294 bool smb1cli_tcon_set_values(struct smbXcli_tcon
*tcon
,
296 uint16_t optional_support
,
297 uint32_t maximal_access
,
298 uint32_t guest_maximal_access
,
300 const char *fs_type
);
301 uint32_t smb2cli_tcon_current_id(struct smbXcli_tcon
*tcon
);
302 uint32_t smb2cli_tcon_capabilities(struct smbXcli_tcon
*tcon
);
303 void smb2cli_tcon_set_values(struct smbXcli_tcon
*tcon
,
304 struct smbXcli_session
*session
,
308 uint32_t capabilities
,
309 uint32_t maximal_access
);
311 struct tevent_req
*smb2cli_session_setup_send(TALLOC_CTX
*mem_ctx
,
312 struct tevent_context
*ev
,
313 struct smbXcli_conn
*conn
,
314 uint32_t timeout_msec
,
315 struct smbXcli_session
*session
,
317 uint32_t in_capabilities
,
319 uint64_t in_previous_session_id
,
320 const DATA_BLOB
*in_security_buffer
);
321 NTSTATUS
smb2cli_session_setup_recv(struct tevent_req
*req
,
323 struct iovec
**recv_iov
,
324 DATA_BLOB
*out_security_buffer
);
326 struct tevent_req
*smb2cli_logoff_send(TALLOC_CTX
*mem_ctx
,
327 struct tevent_context
*ev
,
328 struct smbXcli_conn
*conn
,
329 uint32_t timeout_msec
,
330 struct smbXcli_session
*session
);
331 NTSTATUS
smb2cli_logoff_recv(struct tevent_req
*req
);
332 NTSTATUS
smb2cli_logoff(struct smbXcli_conn
*conn
,
333 uint32_t timeout_msec
,
334 struct smbXcli_session
*session
);
336 struct tevent_req
*smb2cli_create_send(
338 struct tevent_context
*ev
,
339 struct smbXcli_conn
*conn
,
340 uint32_t timeout_msec
,
341 struct smbXcli_session
*session
,
342 struct smbXcli_tcon
*tcon
,
343 const char *filename
,
344 uint8_t oplock_level
, /* SMB2_OPLOCK_LEVEL_* */
345 uint32_t impersonation_level
, /* SMB2_IMPERSONATION_* */
346 uint32_t desired_access
,
347 uint32_t file_attributes
,
348 uint32_t share_access
,
349 uint32_t create_disposition
,
350 uint32_t create_options
,
351 struct smb2_create_blobs
*blobs
);
352 NTSTATUS
smb2cli_create_recv(struct tevent_req
*req
,
353 uint64_t *fid_persistent
,
354 uint64_t *fid_volatile
);
355 NTSTATUS
smb2cli_create(struct smbXcli_conn
*conn
,
356 uint32_t timeout_msec
,
357 struct smbXcli_session
*session
,
358 struct smbXcli_tcon
*tcon
,
359 const char *filename
,
360 uint8_t oplock_level
, /* SMB2_OPLOCK_LEVEL_* */
361 uint32_t impersonation_level
, /* SMB2_IMPERSONATION_* */
362 uint32_t desired_access
,
363 uint32_t file_attributes
,
364 uint32_t share_access
,
365 uint32_t create_disposition
,
366 uint32_t create_options
,
367 struct smb2_create_blobs
*blobs
,
368 uint64_t *fid_persistent
,
369 uint64_t *fid_volatile
);
371 struct tevent_req
*smb2cli_close_send(TALLOC_CTX
*mem_ctx
,
372 struct tevent_context
*ev
,
373 struct smbXcli_conn
*conn
,
374 uint32_t timeout_msec
,
375 struct smbXcli_session
*session
,
376 struct smbXcli_tcon
*tcon
,
378 uint64_t fid_persistent
,
379 uint64_t fid_volatile
);
380 NTSTATUS
smb2cli_close_recv(struct tevent_req
*req
);
381 NTSTATUS
smb2cli_close(struct smbXcli_conn
*conn
,
382 uint32_t timeout_msec
,
383 struct smbXcli_session
*session
,
384 struct smbXcli_tcon
*tcon
,
386 uint64_t fid_persistent
,
387 uint64_t fid_volatile
);
389 struct tevent_req
*smb2cli_read_send(TALLOC_CTX
*mem_ctx
,
390 struct tevent_context
*ev
,
391 struct smbXcli_conn
*conn
,
392 uint32_t timeout_msec
,
393 struct smbXcli_session
*session
,
394 struct smbXcli_tcon
*tcon
,
397 uint64_t fid_persistent
,
398 uint64_t fid_volatile
,
399 uint64_t minimum_count
,
400 uint64_t remaining_bytes
);
401 NTSTATUS
smb2cli_read_recv(struct tevent_req
*req
, TALLOC_CTX
*mem_ctx
,
402 uint8_t **data
, uint32_t *data_length
);
403 NTSTATUS
smb2cli_read(struct smbXcli_conn
*conn
,
404 uint32_t timeout_msec
,
405 struct smbXcli_session
*session
,
406 struct smbXcli_tcon
*tcon
,
409 uint64_t fid_persistent
,
410 uint64_t fid_volatile
,
411 uint64_t minimum_count
,
412 uint64_t remaining_bytes
,
415 uint32_t *data_length
);
417 struct tevent_req
*smb2cli_write_send(TALLOC_CTX
*mem_ctx
,
418 struct tevent_context
*ev
,
419 struct smbXcli_conn
*conn
,
420 uint32_t timeout_msec
,
421 struct smbXcli_session
*session
,
422 struct smbXcli_tcon
*tcon
,
425 uint64_t fid_persistent
,
426 uint64_t fid_volatile
,
427 uint32_t remaining_bytes
,
429 const uint8_t *data
);
430 NTSTATUS
smb2cli_write_recv(struct tevent_req
*req
);
431 NTSTATUS
smb2cli_write(struct smbXcli_conn
*conn
,
432 uint32_t timeout_msec
,
433 struct smbXcli_session
*session
,
434 struct smbXcli_tcon
*tcon
,
437 uint64_t fid_persistent
,
438 uint64_t fid_volatile
,
439 uint32_t remaining_bytes
,
441 const uint8_t *data
);
443 struct tevent_req
*smb2cli_flush_send(TALLOC_CTX
*mem_ctx
,
444 struct tevent_context
*ev
,
445 struct smbXcli_conn
*conn
,
446 uint32_t timeout_msec
,
447 struct smbXcli_session
*session
,
448 struct smbXcli_tcon
*tcon
,
449 uint64_t fid_persistent
,
450 uint64_t fid_volatile
);
451 NTSTATUS
smb2cli_flush_recv(struct tevent_req
*req
);
452 NTSTATUS
smb2cli_flush(struct smbXcli_conn
*conn
,
453 uint32_t timeout_msec
,
454 struct smbXcli_session
*session
,
455 struct smbXcli_tcon
*tcon
,
456 uint64_t fid_persistent
,
457 uint64_t fid_volatile
);
459 struct tevent_req
*smb2cli_set_info_send(TALLOC_CTX
*mem_ctx
,
460 struct tevent_context
*ev
,
461 struct smbXcli_conn
*conn
,
462 uint32_t timeout_msec
,
463 struct smbXcli_session
*session
,
464 struct smbXcli_tcon
*tcon
,
465 uint8_t in_info_type
,
466 uint8_t in_file_info_class
,
467 const DATA_BLOB
*in_input_buffer
,
468 uint32_t in_additional_info
,
469 uint64_t in_fid_persistent
,
470 uint64_t in_fid_volatile
);
471 NTSTATUS
smb2cli_set_info_recv(struct tevent_req
*req
);
472 NTSTATUS
smb2cli_set_info(struct smbXcli_conn
*conn
,
473 uint32_t timeout_msec
,
474 struct smbXcli_session
*session
,
475 struct smbXcli_tcon
*tcon
,
476 uint8_t in_info_type
,
477 uint8_t in_file_info_class
,
478 const DATA_BLOB
*in_input_buffer
,
479 uint32_t in_additional_info
,
480 uint64_t in_fid_persistent
,
481 uint64_t in_fid_volatile
);
483 struct tevent_req
*smb2cli_query_info_send(TALLOC_CTX
*mem_ctx
,
484 struct tevent_context
*ev
,
485 struct smbXcli_conn
*conn
,
486 uint32_t timeout_msec
,
487 struct smbXcli_session
*session
,
488 struct smbXcli_tcon
*tcon
,
489 uint8_t in_info_type
,
490 uint8_t in_file_info_class
,
491 uint32_t in_max_output_length
,
492 const DATA_BLOB
*in_input_buffer
,
493 uint32_t in_additional_info
,
495 uint64_t in_fid_persistent
,
496 uint64_t in_fid_volatile
);
497 NTSTATUS
smb2cli_query_info_recv(struct tevent_req
*req
,
499 DATA_BLOB
*out_output_buffer
);
500 NTSTATUS
smb2cli_query_info(struct smbXcli_conn
*conn
,
501 uint32_t timeout_msec
,
502 struct smbXcli_session
*session
,
503 struct smbXcli_tcon
*tcon
,
504 uint8_t in_info_type
,
505 uint8_t in_file_info_class
,
506 uint32_t in_max_output_length
,
507 const DATA_BLOB
*in_input_buffer
,
508 uint32_t in_additional_info
,
510 uint64_t in_fid_persistent
,
511 uint64_t in_fid_volatile
,
513 DATA_BLOB
*out_output_buffer
);
515 struct tevent_req
*smb2cli_query_directory_send(TALLOC_CTX
*mem_ctx
,
516 struct tevent_context
*ev
,
517 struct smbXcli_conn
*conn
,
518 uint32_t timeout_msec
,
519 struct smbXcli_session
*session
,
520 struct smbXcli_tcon
*tcon
,
524 uint64_t fid_persistent
,
525 uint64_t fid_volatile
,
527 uint32_t outbuf_len
);
528 NTSTATUS
smb2cli_query_directory_recv(struct tevent_req
*req
,
531 uint32_t *data_length
);
532 NTSTATUS
smb2cli_query_directory(struct smbXcli_conn
*conn
,
533 uint32_t timeout_msec
,
534 struct smbXcli_session
*session
,
535 struct smbXcli_tcon
*tcon
,
539 uint64_t fid_persistent
,
540 uint64_t fid_volatile
,
545 uint32_t *data_length
);
547 struct tevent_req
*smb2cli_ioctl_send(TALLOC_CTX
*mem_ctx
,
548 struct tevent_context
*ev
,
549 struct smbXcli_conn
*conn
,
550 uint32_t timeout_msec
,
551 struct smbXcli_session
*session
,
552 struct smbXcli_tcon
*tcon
,
553 uint64_t in_fid_persistent
,
554 uint64_t in_fid_volatile
,
555 uint32_t in_ctl_code
,
556 uint32_t in_max_input_length
,
557 const DATA_BLOB
*in_input_buffer
,
558 uint32_t in_max_output_length
,
559 const DATA_BLOB
*in_output_buffer
,
561 NTSTATUS
smb2cli_ioctl_recv(struct tevent_req
*req
,
563 DATA_BLOB
*out_input_buffer
,
564 DATA_BLOB
*out_output_buffer
);
565 NTSTATUS
smb2cli_ioctl(struct smbXcli_conn
*conn
,
566 uint32_t timeout_msec
,
567 struct smbXcli_session
*session
,
568 struct smbXcli_tcon
*tcon
,
569 uint64_t in_fid_persistent
,
570 uint64_t in_fid_volatile
,
571 uint32_t in_ctl_code
,
572 uint32_t in_max_input_length
,
573 const DATA_BLOB
*in_input_buffer
,
574 uint32_t in_max_output_length
,
575 const DATA_BLOB
*in_output_buffer
,
578 DATA_BLOB
*out_input_buffer
,
579 DATA_BLOB
*out_output_buffer
);
581 struct tevent_req
*smb2cli_echo_send(TALLOC_CTX
*mem_ctx
,
582 struct tevent_context
*ev
,
583 struct smbXcli_conn
*conn
,
584 uint32_t timeout_msec
);
585 NTSTATUS
smb2cli_echo_recv(struct tevent_req
*req
);
586 NTSTATUS
smb2cli_echo(struct smbXcli_conn
*conn
,
587 uint32_t timeout_msec
);
589 #endif /* _SMBXCLI_BASE_H_ */