summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
...
* s3:libsmb/smb_seal: always use SAFE_FREE(buf) in common_free_enc_buffer()Stefan Metzmacher2011-10-211-14/+1
| | | | | | | There's no need to do gss-api specific stuff, the buffer is always malloc'ed. metze
* s3:libsmb/smb_seal: use plain malloc() in common_ntlm_encrypt_buffer()Stefan Metzmacher2011-10-211-2/+7
| | | | metze
* s3:libsmb/smb_seal: avoid ads_errstr() dependency and use gssapi_error_string()Stefan Metzmacher2011-10-211-9/+28
| | | | metze
* s3:libsmb/smb_seal: make use of common [_]smb_[set]len_nbt() macrosStefan Metzmacher2011-10-211-11/+11
| | | | metze
* s3:libsmb/async_smb: in cli_state_notify_pending() we always disconnectStefan Metzmacher2011-10-201-7/+5
| | | | | | | | | So we should always set state->mid = 0. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Oct 20 11:34:23 CEST 2011 on sn-devel-104
* s3:libsmb/smb_seal: move smb_set_enclen() to smb_seal.c and make it static thereStefan Metzmacher2011-10-191-0/+13
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Oct 19 19:06:35 CEST 2011 on sn-devel-104
* s3:libsmb/smb_seal: s/uint16/uint16_tStefan Metzmacher2011-10-191-3/+3
| | | | metze
* s3:include: move smb_seal.c prototypes to smb_crypt.hStefan Metzmacher2011-10-192-9/+1
| | | | metze
* s3:libsmb/smb_seal: make common_ntlm_[en|de]crypt_buffer staticStefan Metzmacher2011-10-192-7/+2
| | | | metze
* s3: Remove duplicate fsctl function definitionsDavid Disseldorp2011-10-191-1/+0
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3: Avoid a winbind 100% cpu loopVolker Lendecke2011-10-191-0/+8
| | | | | | | | | | | | When a DC goes down hard, winbind can end up in a 100% CPU loop. The next (small) RPC request to the DC ends up as a trans2 request. If the connection goes down, we end up trying to discard the request via the loop in cli_state_notify_pending(). Because this is a trans2 request, cli_smb_req_unset_pending will not kick in. Thus the pending array will always remain at length 1. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Oct 19 01:39:35 CEST 2011 on sn-devel-104
* s3-libsmb Use a gensec module to provide the ntlmssp client in ntlmssp_wrap.cAndrew Bartlett2011-10-181-82/+193
| | | | | | This removes the need to have if (ans->gensec_security) everywhere. Andrew Bartlett
* s3-ntlmssp split auth_ntlmssp_client_start() into two partsAndrew Bartlett2011-10-182-11/+16
| | | | | | | | | | | This will allow it to be a wrapper around a gensec module, which requires that they options be set on a context, but before the mechanism is started. This also simplfies the callers, by moving the lp_*() calls into one place. Andrew Bartlett
* gensec: move event context from gensec_*_init() to gensec_update()Andrew Bartlett2011-10-181-1/+1
| | | | | | | | | | | | This avoids keeping the event context around on a the gensec_security context structure long term. In the Samba3 server, the event context we either supply is a NULL pointer as no server-side modules currently use the event context. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* ntlmssp: Move ntlmssp code to auth/ntlmsspAndrew Bartlett2011-10-186-8/+8
| | | | | | | | | This brings in the code from both libcli/auth and source4/auth/ntlmssp. Andrew Bartlett Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3-auth Add my copyrightAndrew Bartlett2011-10-181-1/+1
| | | | | | I have done plenty of work here, I deserve some of the blame :-) Andrew Bartlett
* libsmbclient: initial ABI signaturesAndrew Tridgell2011-10-181-0/+170
|
* libsmbclient: add ABI checking and pc fileAndrew Tridgell2011-10-181-0/+11
| | | | | | | | | this gives us ABI checking for libsmbclient so that the waf build will prevent ABI breakage, and a public version number. The addition of the pc file makes this library available via pkgconfig, including querying of the version number Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* Fix const warning.Jeremy Allison2011-10-141-1/+1
|
* s3:utils change data_blob_dup_talloc() to take a DATA_BLOB by valueGregor Beck2011-10-121-1/+1
| | | | Signed-off-by: Michael Adam <obnox@samba.org>
* s3: Fix an uninitialized variable warningVolker Lendecke2011-09-301-1/+1
|
* s3:smb2cli: fix the num_expected == 0 logic in smb2cli_req_recv()Stefan Metzmacher2011-09-291-3/+7
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 29 22:15:06 CEST 2011 on sn-devel-104
* s3:libsmb: remove unused TALLOC_FREE(subreq) calls inStefan Metzmacher2011-09-281-5/+0
| | | | | Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Sep 28 02:01:09 CEST 2011 on sn-devel-104
* s3:libsmb: call TALLOC_FREE(subreq) directly after cli_sesssetup_blob_recv()Stefan Metzmacher2011-09-281-3/+2
| | | | | | | cli_sesssetup_blob_recv() talloc moves stuff that's needed on the given memory context. metze
* s3: Fix Coverity ID 2619: UNINITVolker Lendecke2011-09-221-0/+2
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Thu Sep 22 01:55:04 CEST 2011 on sn-devel-104
* s3: Fix Coverity ID 2618: UNINITVolker Lendecke2011-09-221-0/+2
|
* Try and fix bug #8472 - Crash in asn.1 parsing code.Jeremy Allison2011-09-211-1/+6
| | | | | | | | Found by Codenomicon at the SNIA plugfest. Don't keep going in the loop when reading the OIDs fail. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Wed Sep 21 05:24:59 CEST 2011 on sn-devel-104
* s3: Further fix for bug 8338Volker Lendecke2011-09-211-2/+9
| | | | | | | OS/X can not deal with a 10-vwv read on normal files. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Sep 21 00:51:08 CEST 2011 on sn-devel-104
* s3:smb2cli: remove unused struct ntlmssp_state from smb2cli_session_setup_stateStefan Metzmacher2011-09-191-1/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Sep 19 06:06:46 CEST 2011 on sn-devel-104
* s3:smb2cli: s/smb2cli_sesssetup_blob/smb2cli_session_setup/Stefan Metzmacher2011-09-191-15/+15
| | | | metze
* s3:smb2cli: s/smb2cli_sesssetup/smb2cli_sesssetup_ntlmssp/Stefan Metzmacher2011-09-182-17/+17
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Sep 18 21:43:26 CEST 2011 on sn-devel-104
* s3:smb2cli: pass timeout to smb2cli_req_create/send()Stefan Metzmacher2011-09-1811-0/+25
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Sun Sep 18 07:04:05 CEST 2011 on sn-devel-104
* s3:smb2cli: pass an array of expected status/body_size pairs to ↵Stefan Metzmacher2011-09-1811-17/+153
| | | | | | | | | smb2cli_req_recv() This gives the caller more control and correctly reports unexpected errors to the caller, instead of return NT_STATUS_INVALID_NETWOR_RESPONSE metze
* s3:smb2cli: only use tevent_req_defer_callback() if we have more than one ↵Stefan Metzmacher2011-09-181-1/+12
| | | | | | smb2 response metze
* s3:smb2cli: ignore async interim responses and store the async_idStefan Metzmacher2011-09-181-0/+12
| | | | metze
* s3:smb2cli: check the response has the SMB2_HDR_FLAG_REDIRECT flagStefan Metzmacher2011-09-181-0/+8
| | | | metze
* s3:smb2cli: validate the opcode from the server is as expectedStefan Metzmacher2011-09-181-3/+14
| | | | metze
* s3:smb2cli: initialize status if we got an unexpected responseStefan Metzmacher2011-09-181-0/+1
| | | | metze
* s3:libsmb: return INTERNAL_ERROR if the request is in bad state when the ↵Stefan Metzmacher2011-09-181-0/+8
| | | | | | caller ships it metze
* s3:libsmb: return if tevent_req_set_endtime() failsStefan Metzmacher2011-09-181-2/+4
| | | | | | tevent_req_set_endtime() already calls tevent_req_nomem(). metze
* s3:smb2cli: SMB2_FLUSH responses have a body size of 4Stefan Metzmacher2011-09-181-1/+1
| | | | metze
* s3:libsmb: forward declaration for struct smb_trans_enc_stateStefan Metzmacher2011-09-161-0/+2
| | | | metze
* s3:libsmb: remove unused cli_*encryption* functionsStefan Metzmacher2011-09-152-48/+0
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 17:52:00 CEST 2011 on sn-devel-104
* s3:libsmb: s/cli_encryption_on/cli_state_encryption_on()Stefan Metzmacher2011-09-152-4/+4
| | | | metze
* s3:libsmb: move cli->server{zone,time} to ↵Stefan Metzmacher2011-09-152-10/+16
| | | | | | | | | cli->conn.smb1.server.{time_zone,system_time} metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Sep 15 14:00:29 CEST 2011 on sn-devel-104
* s3:libsmb: split cli->secblob into ↵Stefan Metzmacher2011-09-152-21/+77
| | | | | | cli->conn.smb1.server.{guid,gss_blob,challenge,workgroup} metze
* s3:libsmb: make use of cli_state_server_gss_blob()Stefan Metzmacher2011-09-151-5/+9
| | | | metze
* s3:libsmb: make use of cli_state_server_challenge()Stefan Metzmacher2011-09-151-11/+8
| | | | metze
* s3:libsmb: add cli_state_server_challenge() and cli_state_server_gss_blob()Stefan Metzmacher2011-09-152-0/+18
| | | | metze
* s3:libsmb: remove the guid from the cli->secblob in spnego modeStefan Metzmacher2011-09-151-4/+8
| | | | metze