summaryrefslogtreecommitdiffstats
path: root/source3/libsmb/clirap.c
Commit message (Collapse)AuthorAgeFilesLines
* s3-libsmb: Make sure the stat structure is initialized.Andreas Schneider2014-10-311-1/+1
| | | | | Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3: smbd - fix processing of packets with invalid DOS charset conversions.Jeremy Allison2014-06-251-2/+2
| | | | | | | | | | | | | | | CVE-2014-3493 Bug 10654 - Segmentation fault in smbd_marshall_dir_entry()'s SMB_FIND_FILE_UNIX handler https://bugzilla.samba.org/show_bug.cgi?id=10654 Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org> Reviewed-by: Guenther Deschner <gd@samba.org> Autobuild-User(master): Jeremy Allison <jra@samba.org> Autobuild-Date(master): Wed Jun 25 03:47:55 CEST 2014 on sn-devel-104
* lib-util: rename memdup to smb_memdup and fix all callersBjörn Baumbach2014-04-161-2/+2
| | | | | Signed-off-by: Björn Baumbach <bb@sernet.de> Reviewed-by: Volker Lendecke <vl@samba.org>
* s3:libsmb: cli_qpathinfo3 use cli_qpathinfo2 for smb2Gregor Beck2013-10-301-1/+7
| | | | | | | | | cli_qpathinfo3 only works (and is only needed as fallback so far) for smb1. Use cli_qpathinfo2 in the smb2 case to make it universally usable. Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: add function cli_qpathinfo3()Gregor Beck2013-10-301-0/+54
| | | | | | | | | This is a reimplemantation of cli_qpathinfo2 without the use of info level SMB_QFILEINFO_ALL_INFO which leads to broken responses from NetApp. Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: add function cli_qpathinfo_standard()Gregor Beck2013-10-301-0/+49
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: pass creation or birth time in cli_qpathinfo_basic()Gregor Beck2013-10-301-0/+1
| | | | | | Signed-off-by: Gregor Beck <gbeck@sernet.de> Reviewed-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
* s3:libsmb: Plumb cli_smb2_qpathinfo_alt_name() inside cli_qpathinfo_alt_name().Jeremy Allison2013-08-151-0/+6
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Plumb cli_smb2_qpathinfo_basic() inside cli_qpathinfo_basic().Jeremy Allison2013-08-151-1/+10
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Plumb cli_smb2_qfileinfo_basic() inside cli_qfileinfo_basic().Jeremy Allison2013-08-151-0/+12
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Plumb cli_smb2_qpathinfo_streams() inside cli_qpathinfo_streams().Jeremy Allison2013-08-151-1/+11
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Plumb cli_smb2_qpathinfo2() inside cli_qpathinfo2().Jeremy Allison2013-08-151-1/+15
| | | | | Signed-off-by: Jeremy Allison <jra@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: Add in the core of the libsmb client SMB2 functions.Jeremy Allison2013-08-151-6/+1
| | | | | | | | | | These create a synchronous cli_smb2_XXX() style interface designed to plug directly into the libsmb/cliXXXX.c code. https://bugzilla.samba.org/show_bug.cgi?id=9974 Signed-off-by: Jeremy Allison <jra@samba.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: s/struct event_context/struct tevent_contextStefan Metzmacher2013-02-191-7/+7
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* s3:libsmb: make use of samba_tevent_context_init()Stefan Metzmacher2013-02-191-4/+4
| | | | | Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
* Check error returns from strupper_m() (in all reasonable places).Jeremy Allison2012-08-091-2/+6
|
* s3:libsmb: get rid of cli_ucs2Luk Claes2012-05-281-1/+1
| | | | | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org> Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon May 28 16:58:03 CEST 2012 on sn-devel-104
* s3:libsmb: get rid of cli_has_async_callsLuk Claes2012-05-281-4/+5
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s3:libsmb: get rid of cli_state_server_time_zoneLuk Claes2012-05-281-3/+3
| | | | | Signed-off-by: Luk Claes <luk@debian.org> Signed-off-by: Stefan Metzmacher <metze@samba.org>
* build: Remove SMB_OFF_T, replace with off_tAndrew Bartlett2012-04-061-5/+5
| | | | | | | | | Now that we always require a 64 bit off_t, we no longer need SMB_OFF_T. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Fri Apr 6 01:47:43 CEST 2012 on sn-devel-104
* s3:libsmb: make use of cli_state_server_time_zone()Stefan Metzmacher2011-09-131-3/+3
| | | | metze
* s3:libsmb/cli*: use CLI_BUFFER_SIZE instead of cli->max_xmitStefan Metzmacher2011-08-091-7/+7
| | | | | | | | | | | | The max_data parameter of trans2/nttrans calls are not bound to cli->max_xmit. Even with cli->max_xmit, which means the max size of the whole SMB pdu, we would get fragmented trans2/nttrans replies. That's why we can also use our maximum, which is CLI_BUFFER_SIZE. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Aug 9 18:14:38 CEST 2011 on sn-devel-104
* s3:libsmb: remove unused cli->privilegesStefan Metzmacher2011-07-121-1/+4
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Tue Jul 12 09:30:49 CEST 2011 on sn-devel-104
* s3:libsmb: use clistr_pull_talloc() in cli_qfilename()Stefan Metzmacher2011-07-061-5/+26
| | | | metze
* s3:libsmb: let cli_qfileinfo[_recv]() return recv_flags2Stefan Metzmacher2011-07-061-1/+2
| | | | metze
* s3-talloc Change TALLOC_ARRAY() to talloc_array()Andrew Bartlett2011-06-091-1/+1
| | | | | Using the standard macro makes it easier to move code into common, as TALLOC_ARRAY isn't standard talloc.
* s3-talloc Change TALLOC_REALLOC_ARRAY() to talloc_realloc()Andrew Bartlett2011-06-091-1/+1
| | | | | | | Using the standard macro makes it easier to move code into common, as TALLOC_REALLOC_ARRAY isn't standard talloc. Andrew Bartlett
* s3-libsmb: fix build warning of cli_qfilename().Günther Deschner2011-05-311-1/+1
| | | | Guenther
* s3: Remove a reference to cli->inbufVolker Lendecke2011-05-231-1/+1
| | | | | This is only used for utf16 alignment calculations, "rdata" is aligned the same way as cli->inbuf is.
* s3: Do central cli_set_errorVolker Lendecke2011-05-191-12/+0
|
* s3-libsmb: move protos to libsmb/proto.hGünther Deschner2011-05-061-0/+1
| | | | Guenther
* s3-tevent: only include ../lib/util/tevent wrappers where needed.Günther Deschner2011-04-291-0/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Apr 29 14:00:30 CEST 2011 on sn-devel-104
* s3-trans2: only include trans2.h where needed.Günther Deschner2011-03-301-0/+1
| | | | Guenther
* charcnv: removed the allow_badcharcnv and allow_bad_conv options to ↵Andrew Tridgell2011-03-241-3/+2
| | | | | | | | | convert_string*() we shouldn't accept bad multi-byte strings, it just hides problems Autobuild-User: Andrew Tridgell <tridge@samba.org> Autobuild-Date: Thu Mar 24 01:47:26 CET 2011 on sn-devel-104
* s3-libsmb: only include rap client when needed.Günther Deschner2011-03-151-0/+1
| | | | Guenther
* s3: move some stuff out of smb.h to better locations.Günther Deschner2011-02-091-0/+2
| | | | Guenther
* s3: Convert cli_api to cli_transVolker Lendecke2011-01-171-11/+48
|
* s3: Make cli_setpathinfo_basic use cli_setpathinfoVolker Lendecke2011-01-171-65/+8
|
* s3: Rename cli_setpathinfo->cli_setpathinfo_basicVolker Lendecke2011-01-171-6/+6
|
* s3: Remove cli_send_trans from cli_qpathinfo_alt_nameVolker Lendecke2011-01-171-51/+25
|
* s3: Remove cli_send_trans from cli_oem_change_passwordVolker Lendecke2011-01-171-15/+5
|
* s3: Replace cli_qfileinfo_test with a call to cli_qfileinfoVolker Lendecke2010-10-241-55/+0
|
* s3: Convert cli_qfileinfo_basic to cli_qfileinfoVolker Lendecke2010-10-241-29/+18
|
* s3: Convert cli_qfilename to cli_qfileinfoVolker Lendecke2010-10-241-35/+13
|
* s3: Rename cli_fileinfo() to cli_fileinfo_basic()Volker Lendecke2010-10-241-7/+7
|
* s3-build: only include async headers where needed.Günther Deschner2010-09-201-0/+1
| | | | Guenther
* s3: Remove some pointless wrapper functionsVolker Lendecke2010-08-051-6/+6
|
* s3: Save the received trans2 from the inbuf in cli_transVolker Lendecke2010-08-051-0/+1
|
* s3: Fix cli_qpathinfo2Volker Lendecke2010-07-281-1/+1
| | | | Does not fix the DIR_CREATETIME test, but it is definitely an error.
* s3: Convert cli_qpathinfo_streams to cli_qpathinfo_sendVolker Lendecke2010-07-261-42/+93
|