summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/libcliraw.h
AgeCommit message (Collapse)AuthorFilesLines
2013-10-05s4:libcli:smb2: add the smb2_capabilities to the smbcli_optionsMichael Adam1-0/+1
and initialize them in lpcfg_smbcli_options() instead of in smb2_transport_init() as previously. This will allow us to control them from callers later. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-10-05s4:libcli:smb2: add the client_guid to the smbcli_optionsMichael Adam1-0/+1
and initialize it in lpcfg_smbcli_options() instead of in smb2_transport_init() as previously. Having the client guid in the smbcli_options will allow us to control them from callers later. Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2012-08-01s4:libcli/raw: remove unused smbcli_session->user_session_keyStefan Metzmacher1-2/+0
metze
2012-07-24s4:libcli/raw: setup a smbXcli_tcon for each smbcli_treeStefan Metzmacher1-0/+1
metze
2012-07-23s4:libcli/raw: setup a smbXcli_session for each smbcli_sessionStefan Metzmacher1-0/+1
metze
2012-04-18Add smb_raw_setfsinfo() - currently only available level is ↵Jeremy Allison1-0/+1
SMB_SET_CIFS_UNIX_INFO.
2011-11-30s4:libcli/raw: implement on top of smbXcli_conn/reqStefan Metzmacher1-58/+10
metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Nov 30 15:13:36 CET 2011 on sn-devel-104
2011-11-30s4:libcli/raw: remove unused functionsStefan Metzmacher1-5/+0
metze
2011-11-29s4:libcli/raw: add transport->ev as copy of transport->socket->event.ctxStefan Metzmacher1-0/+2
We'll remove transport->socket soon, but removing transport->ev will take a bit longer. metze
2011-10-11lib/param move source4 param code to the top levelAndrew Bartlett1-1/+1
This is done so that the lpcfg_ functions are available across the whole build, either with the struct loadparm_context loaded from an smb.conf directly or as a wrapper around the source3 param code. This is not the final, merged loadparm, but simply one step to make it easier to solve other problems while we make our slow progress on this difficult problem. Andrew Bartlett
2011-09-25libcliraw: Make smb_raw_write_recv public and include it in a public header.Jelmer Vernooij1-0/+1
Autobuild-User: Jelmer Vernooij <jelmer@samba.org> Autobuild-Date: Sun Sep 25 17:12:05 CEST 2011 on sn-devel-104
2011-08-18libcliraw: Install more header files.Jelmer Vernooij1-1/+1
2011-08-18smb_common: Install some more headers.Jelmer Vernooij1-1/+1
2011-07-06libcli/smb move enum protocol_types to a common headerAndrew Bartlett1-0/+1
2010-05-18s3: Remove use of iconv_convenience.Jelmer Vernooij1-3/+0
2010-02-02Change uint_t to unsigned int in source4Matt Kraai1-17/+17
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-03s4 torture: Add lockread_supported based off of CAP_LOCK_AND_READZachary Loafman1-0/+1
Signed-off-by: Tim Prouty <tprouty@samba.org>
2009-05-01s4:libcli: remember operating system and lan manager strings from session setupStefan Metzmacher1-0/+3
metze
2009-02-02s4:libcliraw: s/private/private_dataStefan Metzmacher1-3/+3
metze
2009-02-02s4:libcli/raw: s/private/private_dataStefan Metzmacher1-4/+4
metze
2008-12-29s4:lib/tevent: rename structsStefan Metzmacher1-4/+4
list="" list="$list event_context:tevent_context" list="$list fd_event:tevent_fd" list="$list timed_event:tevent_timer" for s in $list; do o=`echo $s | cut -d ':' -f1` n=`echo $s | cut -d ':' -f2` r=`git grep "struct $o" |cut -d ':' -f1 |sort -u` files=`echo "$r" | grep -v source3 | grep -v nsswitch | grep -v packaging4` for f in $files; do cat $f | sed -e "s/struct $o/struct $n/g" > $f.tmp mv $f.tmp $f done done metze
2008-11-02Remove another use of global_loadparm.Jelmer Vernooij1-0/+1
Eventually, we should move some of these parameters into a separate struct (perhaps into smb_transport_options?), to avoid the long lists of parameters.
2008-11-01Move lp_*() calls a bit higher up the calls tack.Jelmer Vernooij1-1/+2
2008-10-24Eliminate another instance of global_loadparm.Jelmer Vernooij1-0/+3
2008-09-23libcli/raw: give the caller the chance to do the signing checks on its own.Stefan Metzmacher1-0/+3
metze
2008-09-23libcli/raw: give the caller the chance to prevent the talloc_free(req) in ↵Stefan Metzmacher1-0/+3
the _recv functions metze
2008-07-07libcli/raw: add a recv_helper hook infrastructureStefan Metzmacher1-0/+8
The recv helper will be called when a response comes and the recv helper can decide to let the request on the SMBCLI_REQUEST_RECV when more reponse packets are expected. It's up to the helper function to keep a reference to the in buffers, each incoming response overwrites req->in. metze (This used to be commit 6d84af89ba96627abe142ba7080c24ae2421ed6c)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-1/+75
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-02-21Fix the build.Jelmer Vernooij1-2/+3
(This used to be commit f4b31ad76771d674ec85cd155b023eed377e6eb4)
2008-02-21Remove yet more global_loadparm instances.Jelmer Vernooij1-0/+5
(This used to be commit 5de88728ac5c567d3711d1ac6862bbdaced84b75)
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell1-2/+2
This converts our SMB and SMB2 code to use a common structure "struct request_bufinfo" for information on the buffer bounds of a packet, alignment information and string handling. This allows us to use a common backend for SMB and SMB2 code, while still using all the same string and blob handling functions. Up to now we had been passing a NULL req handle into these common routines from the SMB2 side of the server, which meant that we failed any operation which did a bounds checked string extraction (such as a RenameInformation setinfo call, which is what Vista uses for renaming files) There is still some more work to be done on this - for example we can now remove many of the SMB2 specific buffer handling functions that we had, and use the SMB ones. (This used to be commit ca6d9be6cb6a403a81b18fa6e9a6a0518d7f0f68)
2008-01-03r26654: libcli/smb_composite: Rather than specifying each of the gazillion ↵Jelmer Vernooij1-0/+3
options for SMB individually, just specify the smbcli_options struct. (This used to be commit 8a97886e24a4b969aa91409c06f423b71a45f6eb)
2008-01-03r26651: libsmb: Allow specifying signing policy from higher up.Jelmer Vernooij1-0/+1
The number of arguments is getting a bit excessive now, so it probably makes sense to pass in the smbcli_options struct rather than all members individually and add a convenience function for obtaining a smbcli_options struct from a loadparm context. (This used to be commit 9f64213463b5bf3bcbf36913139e9a5042e967a2)
2007-12-21r26376: Add context for libcli_resolve.Jelmer Vernooij1-0/+1
(This used to be commit 459e1466a411d6f83b7372e248566e6e71c745fc)
2007-10-10r24712: No longer expose the 'BOOL' data type in any interfaces.Jelmer Vernooij1-1/+1
(This used to be commit 1ce32673d960c8b05b6c1b1b99e1976a402417ae)
2007-10-10r23792: convert Samba4 to GPLv3Andrew Tridgell1-3/+2
There are still a few tidyups of old FSF addresses to come (in both s3 and s4). More commits soon. (This used to be commit fcf38a38ac691abd0fa51b89dc951a08e89fdafa)
2007-10-10r14542: Remove librpc, libndr and libnbt from includes.hJelmer Vernooij1-0/+2
(This used to be commit 51b4270513752d2eafbe77f9de598de16ef84a1f)
2007-10-10r14511: Install more headersJelmer Vernooij1-1/+6
(This used to be commit e1f896948fad8cf5a1aec300865c250c5721ee7d)
2007-10-10r14464: Don't include ndr_BASENAME.h files unless strictly required, insteadJelmer Vernooij1-1/+1
try to include just the BASENAME.h files (containing only structs) (This used to be commit 3dd477ca5147f28a962b8437e2611a8222d706bd)
2007-10-10r12801: Some more include/ cleanups (remove unused macros + move filesJelmer Vernooij1-1/+1
to specific dirs) (This used to be commit 243cf760b077e155f5ac508aeebf819f7708a84e)
2007-10-10r12694: Move some headers to the directory of the subsystem they belong to.Jelmer Vernooij1-0/+1
(This used to be commit c722f665c90103f3ed57621c460e32ad33e7a8a3)
2007-10-10r12542: Move some more prototypes out to seperate headersJelmer Vernooij1-0/+2
(This used to be commit 0aca5fd5130d980d07398f3291d294202aefe3c2)
2007-10-10r11660: - the libcli/raw/ lib no longer uses the SMBCLI_REQUEST_SEND state, orAndrew Tridgell1-4/+0
the associated send queue - fixed negnowait to not watch for the SMBCLI_REQUEST_SEND state (This used to be commit d19235ede5d352d0b0373d204f4357dddde5946f)
2007-10-10r11649: - add support for ntcancel replies (they only happen in error cases,Stefan Metzmacher1-0/+3
e.g when you supply an invalid TID or VUID) - as we don't yet understand how to check the smb_signing of this replies, we just ignore the whole packet abartlet,jra,tridge: can someone try to find out how to create and verify the signatures for this replies. what I noticed is that still use the increment by one for the request, and later requests are still generated fine, only the generating and verifying of the ntcancel replies make problems metze (This used to be commit e6eb0fd2c2f45d6f612d74c6b527c7b17094c907)
2007-10-10r11596: switched the libcli/raw/ code over to using the lib/stream/ genericAndrew Tridgell1-7/+2
packet parsing code. This simplifies the logic in the raw client library a fair bit (This used to be commit f8d43f1f67876360e1295d85a3c3702d1d60ed7b)
2007-10-10r8104: - added support for our client library to not negotiate nt status ↵Andrew Tridgell1-5/+1
codes, controlled with 'nt status support' option. - make nt_errstr() display nice strings for dos status codes encoded using NT_STATUS_DOS() - no longer map between dos and nt status codes in the client library, instead return using NT_STATUS_DOS() - fixed the RAW-CONTEXT test to look for NT_STATUS_DOS(ERRSRV, ERRbaduid) instead of NT_STATUS_INVALID_HANDLE (This used to be commit ff5549e87ffae9f062394f30d8fd1ae95b614735)
2007-10-10r7654: - add a timeout to all smb requests (default 60 seconds)Andrew Tridgell1-0/+4
- add a request destructor, to make it safe to destroy a pending request with talloc_free() (This used to be commit 72c6988767249caa585f37fec4c0afbf41557ec2)
2007-10-10r4891: - added a generic resolve_name() async interface in libcli/resolve/,Andrew Tridgell1-1/+2
which will eventually try all resolution methods setup in smb.conf - only resolution backend at the moment is bcast, which does a parallel broadcast to all configured network interfaces, and takes the first reply that comes in (this nicely demonstrates how to do parallel requests using the async APIs) - converted all the existing code to use the new resolve_name() api - removed all the old nmb code (yay!) (This used to be commit 239c310f255e43dd2d1c2433f666c9faaacbdce3)
2007-10-10r4757: added the ability of the clisocket level of libcli to handle asyncAndrew Tridgell1-21/+10
socket connections. This was complicated by a few factors: - it meant moving the event context from clitransport to clisocket, so lots of structures changed - we need to asynchronously handle connection to lists of port numbers, not just one port number. The code internally tries each port in the list in turn, without ever blocking - the man page on how connect() is supposed to work asynchronously doesn't work in practice (now why doesn't this surprise me?). The getsockopt() for SOL_ERROR is supposed to retrieve the error, but in fact the next (unrelated) connect() call on the same socket also gets an error, though not the right error. To work around this I need to tear down the whole socket between each attempted port. I hate posix. Note that clisocket.c still does a blocking name resolution call in smbcli_sock_connect_byname(). That will be fixed when we add the async NBT resolution code. Also note that I arranged things so that every SMB connection is now async internally, so using plain smbclient or smbtorture tests all the async features of this new code. (This used to be commit 468f8ebbfdbdf37c757fdc4863626aa9946a8870)
2007-10-10r4015: correct copyright attributionsAndrew Tridgell1-3/+2
(This used to be commit 078d9ab05bffc79e4f329ea18fe3dafd144d989c)