summaryrefslogtreecommitdiff
path: root/source3/libsmb
AgeCommit message (Collapse)AuthorFilesLines
2011-09-15s3:libsmb: use local variables in cli_state_create()Stefan Metzmacher2-17/+14
We don't need to keep use_spnego, use_level_II_oplocks, force_dos_errors and force_ascii within struct cli_state. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 10:12:17 CEST 2011 on sn-devel-104
2011-09-15s3:libsmb: use CAP_EXTENDED_SECURITY instead of cli->use_spnegoStefan Metzmacher1-1/+1
cli->capabilities contains the negotiated capabilities. metze
2011-09-15s3:libsmb: make use of SMB_CAP_BOTH/CLIENT_MASK in ↵Stefan Metzmacher1-13/+25
cli_session_setup_capabilities() This matches a w2k3 client. metze
2011-09-15s3:libsmb: calculate the negotiated SMB1 capabilities in cli_negprot_done()Stefan Metzmacher1-6/+12
We calculate the negotiated capabilities based on the mask for: - client only flags - flags used in both directions - server only flags metze
2011-09-15s3:libsmb: calculate all SMB1 capabilities we want to support for the connectionStefan Metzmacher1-2/+24
We should do this at startup in cli_state_create() and later calculate the negotiated capabilities in cli_negprot_done(). metze
2011-09-15s3:libsmb: no need to reset capabilities in cli_session_setup_lanman2()Stefan Metzmacher1-10/+0
This is only used cli->protocol < PROTOCOL_NT1, in which case cli_negprot_done() has already reset cli->capabilities. metze
2011-09-15s3:libsmb: make sure we always set cli->capabilities at the end of ↵Stefan Metzmacher1-3/+6
cli_negprot_done() If the server doesn't support PROTOCOL_NT1 we should reset the negotiated capabilities to 0. metze
2011-09-14s3:libsmb: remove unused cli->is_sambaStefan Metzmacher1-22/+1
s3:libsmb: remove unused cli->is_samba metze Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytesStefan Metzmacher1-0/+8
s3:libsmb: align chunk_size for cli_pull/push() to a page size of 1024 bytes metze Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14s3:libsmb: let cli_write_max_bufsize() return the max number of possible bytesStefan Metzmacher1-21/+28
s3:libsmb: let cli_write_max_bufsize() return the max number of possible bytes We now return what's possible on the wire. Which is 0x1FFFF - data_offset if CAP_LARGE_WRITEX is given by the server (without signing) or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP is available (without signing/sealing). Otherwise we return max_xmit - data_offset. metze Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytesStefan Metzmacher1-16/+31
s3:libsmb: let cli_read_max_bufsize() return the max number of possible bytes We now return what's possible on the wire. Which is 0xFFFF if CAP_LARGE_READX is given by the server or 0xFFFFFF - data_offset if CIFS_UNIX_LARGE_READ_CAP is available (without signing/sealing). Otherwise we return max_xmit - data_offset. metze Signed-off-by: Jeremy Allison <jra@samba.org>
2011-09-14Fix bug #8453 - smbclient segfaults when dialect option -m is used for ↵Jeremy Allison1-0/+13
legacy dialects Ensure we have valid pointers.
2011-09-14s3:libsmb: return NT_STATUS_CONNECTION_DISCONNECTED instead of ↵Stefan Metzmacher1-1/+1
NT_STATUS_CONNECTION_INVALID We should return the same in all places. metze
2011-09-14s3:libsmb: make use of new advanded SMB signingStefan Metzmacher4-57/+64
metze
2011-09-14s3:smb_signing: add support for easier negotiation of SMB signingStefan Metzmacher3-33/+72
We don't make use of it yet, but it will follow. metze
2011-09-13s3:smb2cli: split cli->smb2.gss_blob from cli->secblobStefan Metzmacher1-1/+1
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 23:34:13 CEST 2011 on sn-devel-104
2011-09-13s3:libsmb: make use of cli_state_server_time_zone()Stefan Metzmacher4-17/+17
metze
2011-09-13s3:libsmb: add cli_state_server_time()Stefan Metzmacher2-0/+6
metze
2011-09-13s3:libsmb: add cli_state_server_time_zone()Stefan Metzmacher2-0/+6
metze
2011-09-13s3:libsmb: make use of cli_state_server_session_key()Stefan Metzmacher1-4/+4
metze
2011-09-13s3:libsmb: add cli_state_server_session_key()Stefan Metzmacher2-0/+6
metze
2011-09-13s3:libsmb: make use of cli_state_security_mode()Stefan Metzmacher1-9/+12
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Sep 13 19:45:01 CEST 2011 on sn-devel-104
2011-09-13s3:libsmb: add cli_state_security_mode()Stefan Metzmacher2-0/+6
metze
2011-09-13s3:libsmb: make use of cli_state_max_requests() in cli_push_send()Stefan Metzmacher1-2/+5
metze
2011-09-13s3:libsmb: make use of cli_state_max_requests() in cli_pull_send()Stefan Metzmacher1-1/+4
metze
2011-09-13s3:libsmb: add cli_state_max_requests()Stefan Metzmacher2-0/+6
metze
2011-09-13s3:libsmb: make sure cli->max_mux is valid in the return of the serverStefan Metzmacher1-0/+6
metze
2011-09-13s3:libsmb: set the MID to 0 in cli_setup_packet_buf()Stefan Metzmacher1-1/+1
It's allocated when sending the request. metze
2011-09-13s3:libsmb: check that max_xmit is not less than 1024Stefan Metzmacher1-0/+5
metze
2011-09-13s3:libsmb: better expect a max_xmit of 1024 instead of 0xFFFF for the CORE ↵Stefan Metzmacher1-0/+1
protocol metze
2011-09-13s3:libsmb: don't mix smb2 share capabilities with smb1 capabilitiesStefan Metzmacher1-1/+1
metze
2011-09-13s3:libsmb: make use of cli_state_available_size() in cli_smbwrite()Stefan Metzmacher1-1/+2
metze
2011-09-13s3:libsmb: make use of cli_state_available_size() in cli_write_max_bufsize()Stefan Metzmacher1-1/+1
metze
2011-09-13s3:libsmb: make use of cli_state_available_size() in cli_read_max_bufsize()Stefan Metzmacher1-1/+1
metze
2011-09-13s3:libsmb: make use of cli_state_available_size() in cli_list_old_send()Stefan Metzmacher1-1/+3
metze
2011-09-13s3:libsmb: make use of cli_state_available_size() in cli_sesssetup_blob_send()Stefan Metzmacher1-6/+8
metze
2011-09-13s3:libsmb: make use of cli_state_available_size() in cli_trans_format()Stefan Metzmacher1-4/+5
metze
2011-09-13s3:libsmb: add cli_state_available_size()Stefan Metzmacher2-0/+14
metze
2011-09-13s3: Make saf_join_key() use tallocVolker Lendecke1-12/+20
2011-09-13s3: Make saf_key() use tallocVolker Lendecke1-12/+20
2011-09-13s3: Disentangle resolve_name() a bitVolker Lendecke1-3/+5
2011-09-12s3:libsmb: check the wct of the incoming SMBnegprot responsesStefan Metzmacher1-0/+10
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 12 20:50:27 CEST 2011 on sn-devel-104
2011-09-12s3:libsmb: let cli_pull_raw_error() return NT_STATUS_OK as DOS-Error successStefan Metzmacher1-1/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 12 19:12:21 CEST 2011 on sn-devel-104
2011-09-08s3:libsmb: add CLI_FULL_CONNECTION_FORCE_ASCIIStefan Metzmacher2-1/+10
metze
2011-09-08s3:libsmb: add CLI_FULL_CONNECTION_FORCE_DOS_ERRORSStefan Metzmacher1-1/+4
metze
2011-09-08s3:libsmb: don't handle CLI_FULL_CONNECTION_* flags in cli_full_connection()Stefan Metzmacher1-4/+0
This is already done by cli_state_create(). metze
2011-09-08s3:libsmb: don't handle CLI_FULL_CONNECTION_* flags in cli_start_connection()Stefan Metzmacher1-13/+0
This is already done by cli_state_create(). metze
2011-09-08s3:libsmb: pass CLI_FULL_CONNECTION_* flags via cli_connect_nb()Stefan Metzmacher5-24/+32
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 8 10:21:50 CEST 2011 on sn-devel-104
2011-09-08s3:libsmb: pass CLI_FULL_CONNECTION_* flags to cli_state_create()Stefan Metzmacher3-3/+26
metze
2011-09-07s3:smb2cli: let smb2cli_req_create() use the give pid, uid and tid valuesStefan Metzmacher1-3/+3
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 7 18:19:43 CEST 2011 on sn-devel-104