summaryrefslogtreecommitdiffstats
path: root/source3/libsmb
Commit message (Collapse)AuthorAgeFilesLines
* s3: Add cli_symlinkVolker Lendecke2011-06-242-0/+240
|
* s3: Add symlink reparse point marshalling routinesVolker Lendecke2011-06-242-0/+183
|
* Use tevent_req_oomVolker Lendecke2011-06-203-6/+6
| | | | This fixes a few Coverity errors
* tdb_compat: use tdb_open_compat.Rusty Russell2011-06-201-4/+6
| | | | | | | | | This is a helper for the common case of opening a tdb with a logging function, but it doesn't do all the work, since TDB1 and TDB2's log functions are different types. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_chainunlock: ignore return value.Rusty Russell2011-06-201-2/+3
| | | | | | | | | TDB2 returns void here. tdb_chainunlock will *always* return with the chain unlocked, but it will complain via the log function if it wasn't locked. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_chainlock: check returns for 0, not -1.Rusty Russell2011-06-201-1/+1
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_store: check returns for 0, not -1.Rusty Russell2011-06-202-5/+5
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_delete: check returns for 0, not -1.Rusty Russell2011-06-201-2/+2
| | | | | | | | TDB2 returns a negative error number on failure. This is compatible if we always check for != 0 instead of == -1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_fetch_compat: use instead of tdb_fetch.Rusty Russell2011-06-201-5/+5
| | | | | | | This is a noop for tdb1. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* tdb_compat.h: divert every tdb build and includes to tdb_compatRusty Russell2011-06-201-1/+1
| | | | | | | | We change all the headers and wscript files to use tdb_compat; this means we have one place to decide whether to use TDB1 or TDB2. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* smb_share_modes: don't use tdb_jenkins_hash.Rusty Russell2011-06-201-4/+2
| | | | | | | | It's a nice hash, but this usage has nothing to do with TDB. So use the Jenkins hash directly from CCAN instead (it's the same one). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
* s3: Fix Coverity ID 2583: RESOURCE_LEAKVolker Lendecke2011-06-191-1/+5
|
* s3: Remove unused name_queriesVolker Lendecke2011-06-191-34/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 15:14:38 CEST 2011 on sn-devel-104
* s3: Fix some type-punned warningsVolker Lendecke2011-06-191-7/+8
|
* s3: Add name_resolve_bcast_send/recvVolker Lendecke2011-06-191-20/+97
|
* s3: Fix a memleak in name_resolve_bcastVolker Lendecke2011-06-191-4/+7
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 19 12:40:55 CEST 2011 on sn-devel-104
* s3: Add incomplete cli_nttrans_createVolker Lendecke2011-06-192-0/+208
| | | | secdesc only at this moment
* s3: Correctly align evenVolker Lendecke2011-06-191-1/+3
|
* s3-util: remove the s3 nterr.cAndrew Tridgell2011-06-171-57/+0
| | | | | | this is now in common code Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>
* libclu/util: Move get_friendly_nt_error_msg() in common.Andrew Bartlett2011-06-171-20/+0
| | | | | | Andrew Bartlett Signed-off-by: Andrew Tridgell <tridge@samba.org>
* s3: Use resolve_wins_send/recv in resolve_winsVolker Lendecke2011-06-121-110/+15
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jun 12 18:19:41 CEST 2011 on sn-devel-104
* s3: Add resolve_wins_send/recvVolker Lendecke2011-06-121-0/+177
|
* s3: Add query_wins_list_send/recvVolker Lendecke2011-06-121-0/+144
|
* s3: Fix IO_TIMEOUT handling for wins queriesVolker Lendecke2011-06-121-3/+12
|
* s3: Remove "struct ip_service" from resolve_winsVolker Lendecke2011-06-121-9/+13
|
* s3:libsmb: remove unused cli_state_seqnum infrastructureStefan Metzmacher2011-06-102-36/+0
| | | | | | | metze Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Fri Jun 10 20:37:54 CEST 2011 on sn-devel-104
* s3:libsmb/clireadwrite: calculate cli_write_max_bufsize() correct based on ↵Stefan Metzmacher2011-06-101-8/+12
| | | | | | | | | max_xmit This is important in order to support DCERPC over ncacn_np against NT4 servers, where max_xmit is just 4356. metze
* s3:libsmb/clireadwrite: calculate cli_read_max_bufsize() correct based on ↵Stefan Metzmacher2011-06-101-1/+12
| | | | | | | | | max_xmit This is important in order to support DCERPC over ncacn_np against NT4 servers, where max_xmit is just 4356. metze
* s3:libsmb/clitrans: correctly transfer the seqnum between secondary and ↵Stefan Metzmacher2011-06-101-3/+8
| | | | | | | | primary requests This is needed to implement SMB signing correct. metze
* s3:libsmb/clitrans: fix handling of multi pdu [nt]trans[s][2] callsStefan Metzmacher2011-06-101-8/+80
| | | | | | | | We now keep the primary request open for the whole logical request. The primary request is the one that gets all incoming replies. While secondary requests are handled as separate one-way requests. metze
* s3:libsmb/clitrans: use subreq2 as variable for the secondary requestsStefan Metzmacher2011-06-101-7/+9
| | | | metze
* s3:libsmb/clitrans: move MID handling to the end of cli_trans_send() and add ↵Stefan Metzmacher2011-06-101-2/+11
| | | | | | a comment metze
* s3:libsmb/clitrans: correctly marshall [nt]trans[s][2] requestsStefan Metzmacher2011-06-101-12/+41
| | | | | | | | We need to align params and data to 4 byte offsets. This also correctly recalculates the useable space after each step. metze
* s3:libsmb/clitrans: marshall SMBnttrans[2] as the othersStefan Metzmacher2011-06-101-23/+23
| | | | | | | This is just to make the code more readable and easier to notice how many words we're using in vwv. metze
* s3:libsmb/clitrans: use uint32_t for param and data variablesStefan Metzmacher2011-06-101-3/+3
| | | | | | SMBnttrans uses 32-bit values there. metze
* s3:libsmb/clitrans: remove unused secondary_request_ctxStefan Metzmacher2011-06-101-2/+0
| | | | metze
* s3:libsmb/async_smb: add helpers to get and set the seqnum for signingStefan Metzmacher2011-06-101-0/+14
| | | | | | This will be used for correct signing in [nt]trans[2][s] requests. metze
* s3:libsmb/async_smb: don't remove pending requests if the mid is setStefan Metzmacher2011-06-101-0/+15
| | | | | | | If the mid was set explicitly, it means the request expects more than one reply, so leave it in the pending array. metze
* s3:libsmb/async_smb: call cli_smb_req_unset_pending() instead of destructor ↵Stefan Metzmacher2011-06-101-2/+2
| | | | | | directly metze
* s3:libsmb/async_smb: let cli_smb_recv() initialize output values for one way ↵Stefan Metzmacher2011-06-101-0/+18
| | | | | | requests metze
* source3/libsmb/proto.h: fix licence/copyrightGünther Deschner2011-06-101-0/+8
| | | | Guenther
* source3/libsmb/nmblib.h: fix licence/copyrightGünther Deschner2011-06-101-0/+27
| | | | Guenther
* source3/libsmb/libsmb.h: fix licence/copyrightGünther Deschner2011-06-101-0/+5
| | | | Guenther
* source3/libsmb/errormap_wbc.h: fix licence/copyrightGünther Deschner2011-06-101-0/+26
| | | | Guenther
* source3/libsmb/clidgram.h: fix licence/copyrightGünther Deschner2011-06-101-0/+26
| | | | Guenther
* s3-param Remove special case for global_myname(), rename to lp_netbios_name()Andrew Bartlett2011-06-098-12/+12
| | | | | | | | There is no reason this can't be a normal constant string in the loadparm system, now that we have lp_set_cmdline() to handle overrides correctly. Andrew Bartlett
* s3-param Remove special case for global_scope()Andrew Bartlett2011-06-091-5/+5
| | | | | | | There is no reason this can't be a normal constant string in the loadparm system. (Past reasons were that we didn't have lp_set_cmdline()) Andrew Bartlett
* s3-libsmbclient Use workgroup from libsmbclient caller for domain in credentialsAndrew Bartlett2011-06-091-1/+1
| | | | | | | | | This previously set the workgroup, which is a different thing, but would have been the default if no domain was specified). This more clearly sets the information from the credentials file into the matching field in the credentials structure. Andrew Bartlett
* s3-talloc Change TALLOC_MEMDUP() to talloc_memdup()Andrew Bartlett2011-06-091-2/+2
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_MEMDUP isn't standard talloc.
* s3-talloc Change TALLOC_ZERO_ARRAY() to talloc_zero_array()Andrew Bartlett2011-06-094-7/+7
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ZERO_ARRAY isn't standard talloc.