summaryrefslogtreecommitdiff
path: root/libcli/smb/smbXcli_base.c
AgeCommit message (Collapse)AuthorFilesLines
2012-08-01libcli/smb: allow resetting of the smb1 application_keyStefan Metzmacher1-2/+6
We need this untill we have fixed all callers... metze
2012-08-01libcli/smb: let smb1cli_session_set_id() reset the application_keyStefan Metzmacher1-0/+1
We have some callers which reuse smbXcli_session, e.g. cli_state_set_uid() metze
2012-08-01libcli/smb: add smb1cli_session_set_session_key()Stefan Metzmacher1-0/+34
metze
2012-07-26libcli/smb: add basic session->smb2.channel_sequence handlingStefan Metzmacher1-0/+33
metze
2012-07-26libcli/smb: introduce a smb2cli_sessionStefan Metzmacher1-107/+93
This maintains the shared state between multiple session channels. metze
2012-07-25libcli/smb: setup tcon->smb2.should_encrypt in smb2cli_tcon_set_values()Stefan Metzmacher1-1/+16
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Jul 25 16:44:22 CEST 2012 on sn-devel-104
2012-07-25libcli/smb: pass smbXcli_session to smb2cli_tcon_set_values()Stefan Metzmacher1-0/+1
metze
2012-07-25libcli/smb: there's no PID field in the SMB2/3 header anymoreStefan Metzmacher1-8/+4
It's a reserved field... metze
2012-07-25libcli/smb: pass smbXcli_tcon to smb2cli_req_create/send()Stefan Metzmacher1-12/+17
metze
2012-07-25libcli/smb: add smb2cli_tcon_capabilities()Stefan Metzmacher1-0/+5
metze
2012-07-24libcli/smb: pass down smbXcli_tcon to smb1cli_req_create/send() and ↵Stefan Metzmacher1-6/+12
smb1cli_trans* metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 24 21:22:44 CEST 2012 on sn-devel-104
2012-07-24libcli/smb: add smbXcli_tcon structureLuk Claes1-0/+89
Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-24libcli/smb: pass down smbXcli_session to smb1cli_req_create/send() and ↵Stefan Metzmacher1-7/+12
smb1cli_trans* metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Jul 24 00:08:58 CEST 2012 on sn-devel-104
2012-07-23libcli/smb: introduce smb1.session for uid useLuk Claes1-0/+15
Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-07-23libcli/smb: set should_encrypt = true if we got SMB2_SESSION_FLAG_ENCRYPT_DATAStefan Metzmacher1-2/+15
metze Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Mon Jul 23 20:14:07 CEST 2012 on sn-devel-104
2012-07-23libcli/smb: encrypt SMB2 traffic if nedded/desired.Stefan Metzmacher1-3/+79
metze
2012-07-23libcli/smb: increment nbt_len, when we have the fully created the SMB2 PDUStefan Metzmacher1-1/+2
metze
2012-07-23libcli/smb: maintain smb2.should_sign on smbXcli_req_stateStefan Metzmacher1-26/+11
metze
2012-07-23libcli/smb: make use of SMB2_HDR_BODY as header sizeStefan Metzmacher1-1/+1
metze
2012-07-23libcli/smb: parse the SMB2_TRANSFORM header and decrypt the SMB2 pduStefan Metzmacher1-0/+63
metze
2012-07-23libcli/smb: create 4 iovecs per request in smb2cli_inbuf_parse_compound()Stefan Metzmacher1-16/+25
The first one might hold the SMB2_TRANSFORM Header later. metze
2012-07-23libcli/smb: prepare [en|de]cryption_key for SMB3Stefan Metzmacher1-0/+65
metze
2012-07-23libcli/smb: copy the application_key in smb2cli_session_create_channel()Stefan Metzmacher1-0/+6
metze
2012-07-23libcli/smb: check the buffer length in smbXcli_negprot_dispatch_incoming()Stefan Metzmacher1-1/+8
metze
2012-07-23libcli/smb: only pass the smb2 buffer to smb2cli_inbuf_parse_compound()Stefan Metzmacher1-12/+12
We should hide the transport as much as possible. metze
2012-07-23libcli/smb: construct the signing_key before forming the messageStefan Metzmacher1-31/+31
metze
2012-05-06libcli/smb/smbXcli: add support for PROTOCOL_SMB3_00Stefan Metzmacher1-0/+1
metze
2012-04-16libcli/smb: add smb2cli_session_get_flags()Stefan Metzmacher1-0/+5
metze
2012-04-16libcli/smb: we should not force a session key for anonymous connectionsStefan Metzmacher1-4/+4
smb2cli_session_set_session_key() should not check for a valid session key, if the connection is a guest or null session. metze
2012-04-16libcli/smb: make use of data_blob_string_const_null()Stefan Metzmacher1-12/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Apr 16 12:21:17 CEST 2012 on sn-devel-104
2012-03-03smbXcli: add the possiblilty to negotiate client capabilites in smb >= 2.2Michael Adam1-2/+9
Pair-Programmed-With: Stefan Metzmacher <metze@samba.org>
2012-02-29libcli/smb/smb2_signing: rename smb2_key_deviration -> smb2_key_derivationMichael Adam1-3/+3
Autobuild-User: Michael Adam <obnox@samba.org> Autobuild-Date: Wed Feb 29 09:01:54 CET 2012 on sn-devel-104
2012-02-29libcli/smb/smbXcli: use smb2_key_deviration() to setup SMB 2.24 keysStefan Metzmacher1-2/+41
This uses the key diveration function from "NIST Special Publication 800-108" in counter mode (section 5.1). Thanks to Jeremy, Michael and Volker for the debugging! metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Feb 29 04:54:48 CET 2012 on sn-devel-104
2012-02-27libcli/smb/smb2_signing: pass down 'protocol' to smb2_signing_[sign|check]_pdu()Stefan Metzmacher1-1/+6
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Feb 27 14:26:32 CET 2012 on sn-devel-104
2012-02-27libcli/smb/smbXcli: remove unused if statement from ↵Stefan Metzmacher1-3/+1
smb2cli_conn_dispatch_incoming() metze
2012-02-27libcli/smb/smbXcli: add smb2cli_session_application_key()Stefan Metzmacher1-0/+25
metze
2012-02-27libcli/smb/smbXcli: maintain smb2 channel_signing_key separate from the ↵Stefan Metzmacher1-55/+125
signing_key The signing_key is fix across all channels and is used for session setups on a channel binding. Note: - the last session setup response is signed with the new channel signing key. - the reauth session setups are signed with the channel signing key. It's also not needed to remember the main session key. metze
2012-02-27libcli/smb/smbXcli: remove unused checks from smb2cli_session_create_channel()Stefan Metzmacher1-11/+0
metze
2012-01-31libcli/smb: Convert struct smb_trans_enc_state to tallocAndrew Bartlett1-2/+2
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2012-01-27libcli/smb: fix smbXcli_negprot(..., PROTOCOL_NT1, PROTOCOL_SMB2_02)Stefan Metzmacher1-3/+6
The SMB1 negprot request already consumed the SMB2 sequence '0'. This also happens for the SMB 2.02 case. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Jan 27 15:27:41 CET 2012 on sn-devel-104
2012-01-05libcli/smb: Add smbXcli_conn_samba_suicideVolker Lendecke1-0/+97
This is a pure test tool against Samba servers
2011-12-22libcli/smb: add PROTOCOL_SMB2_24 supportStefan Metzmacher1-0/+1
metze
2011-11-29smbXcli: add support for SMBreadBrawStefan Metzmacher1-7/+54
metze
2011-11-29smbXcli: add smb1cli_conn_server_{readbraw,writebraw,lockread,writeunlock}()Stefan Metzmacher1-0/+20
metze
2011-11-29smbXcli: rebuild smb1.recv_iov array if we expect more than one responseStefan Metzmacher1-0/+29
metze
2011-11-29smbXcli: allow up to 10 iovec elements for the bytes in smb1cli_req_create()Stefan Metzmacher1-1/+1
The smb1cli_trans_* code uses up to 6 elements, which was too much for the current limit of 5. metze
2011-11-29smbXcli: s/smb2cli_writev_done/smb2cli_req_writev_doneStefan Metzmacher1-3/+3
This is a better name and it matches smb1cli_req_writev_done metze
2011-11-29smbXcli: call tevent_queue_stop() for the outgoing queue on disconnectStefan Metzmacher1-0/+2
metze
2011-11-29smbXcli: use talloc_stackframe() instead of talloc_tos() in smb1cli_conn_signv()Stefan Metzmacher1-2/+5
metze
2011-11-28Fix Coverity ID 2638: OVERRUN_STATICVolker Lendecke1-1/+1