summaryrefslogtreecommitdiffstats
path: root/source4/libcli/smb2/request.c
Commit message (Collapse)AuthorAgeFilesLines
* s4:libcli/smb2: remove unused smb2_session->pidStefan Metzmacher2012-07-251-1/+0
| | | | metze
* s4:libcli/smb2: remove unused elements from smb2_treeStefan Metzmacher2012-07-251-1/+0
| | | | metze
* s4:libcli/smb2: use talloc_zero() in smb2_request_init()Stefan Metzmacher2011-11-241-16/+3
| | | | metze
* s4:libcli/smb2: fix compiler warning in smb2_push_o16s16_string()Stefan Metzmacher2011-11-241-1/+3
| | | | metze
* s4:libcli/smb2: implement on top of smbXcli_conn/reqStefan Metzmacher2011-11-241-43/+7
| | | | metze
* s4:libcli: use tevent_ fn names instead of legacy event_ onesSimo Sorce2011-08-131-1/+1
|
* Ensure convert_string_XXX is always called with a valid converted_size pointer.Jeremy Allison2011-03-291-1/+2
| | | | | | | Preparation for cleaning up this API. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Mar 29 21:01:49 CEST 2011 on sn-devel-104
* 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
* s4/libcli: Initialize client PID for SMB2 connectionsSteven Danneman2009-11-251-0/+1
| | | | Set the SMB pid to the Unix pid of the client process.
* s4:libcli/smb2: add smb2_transport_credits_set_charge() to change the ↵Stefan Metzmacher2009-07-151-4/+6
| | | | | | CreditsCharge value for the next request metze
* s4:libcli/smb2: add smb2_transport_credits_ask_num()Stefan Metzmacher2009-06-091-2/+2
| | | | metze
* s4:libcli/smb2: only add the 1 byte dynamic buffer padding for non ↵Stefan Metzmacher2009-06-091-2/+6
| | | | | | compounded requests metze
* s4:libcli/smb2: add support sending compounded requestsStefan Metzmacher2009-06-091-6/+28
| | | | metze
* s4: Use same function signature for convert_* as s3.Jelmer Vernooij2009-03-011-9/+9
|
* Add allow_badcharcnv argument to all conversion function, forJelmer Vernooij2009-03-011-2/+2
| | | | consistency with Samba 3.
* s4:libcli/smb2: fix c++ warningStefan Metzmacher2009-02-051-1/+1
| | | | metze
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Remove iconv_convenience argument from convert_string{,talloc}() butJelmer Vernooij2008-10-241-2/+2
| | | | make them wrappers around convert_string{,talloc}_convenience().
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* - SMB2 uses INVALID_PARAMETER not BUFFER_TOO_SMALL for buffer sizeAndrew Tridgell2008-09-241-15/+39
| | | | | | errors - added a s32o16 buffer function
* private -> private_data for struct smb2_requestAndrew Tridgell2008-05-161-8/+17
| | | | (This used to be commit 67290e0ad69df2f2fe651249c6550b8e32dd641b)
* fix the overflow/wrap checks in Samba4 for new gcc optimisation behaviorAndrew Tridgell2008-04-171-4/+4
| | | | | | The approach I have used is as set out in https://www.securecoding.cert.org/confluence/display/seccode/ARR38-C.+Do+not+add+or+subtract+an+integer+to+a+pointer+if+the+resulting+value+does+not+refer+to+an+element+within+the+array (This used to be commit 92d5fb531db39be655f0cbd2d75b5f675a0a4cfa)
* handle pushing of zero length smb2 stringsAndrew Tridgell2008-02-181-0/+6
| | | | (This used to be commit 66d0502228b31533b5d93731128a681992c22eda)
* fixed handling of zero sized buffers versus NULL buffers inAndrew Tridgell2008-02-161-10/+31
| | | | | SMB2. Thanks to Metze for spotting this. (This used to be commit fbcf3e65b9284e5d1862c98706d7f148a36afe47)
* updated SMB2 code for getinfo according to WSPP docsAndrew Tridgell2008-02-141-0/+27
| | | | | | | - Updated getinfo structures and field names - also updated the protocol revision number handling to reflect new docs (This used to be commit 3aaa2e86d94675c6c68d66d75292c3e34bfbc81b)
* Fixed SMB2 rename operations from Vista clientsAndrew Tridgell2008-02-141-1/+1
| | | | | | | | | | We needed a flag in bufinfo to mark packets as SMB2, as it seems that SMB2 uses a different format for the RenameInformation buffer than SMB does Also handle the fact that SMB2 clients give the full path to the target file in the rename, not a relative path (This used to be commit 52d7972d95ddc19d22a4187b4d4428a6c3ed32d5)
* Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell2008-02-141-0/+15
| | | | | | | | | | | | | | | | | | | 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)
* updated SMB2 header defines to match WSPP docsAndrew Tridgell2008-02-121-7/+7
| | | | (This used to be commit d2c6ad55eca27f50a38fc6e2a85032eddb3f0aae)
* r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij2007-12-211-2/+3
| | | | (This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
* r26316: Use contexts for conversion functions.Jelmer Vernooij2007-12-211-2/+2
| | | | (This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
* r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij2007-10-101-10/+10
| | | | (This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
* r25035: Fix some more warnings, use service pointer rather than service ↵Jelmer Vernooij2007-10-101-1/+1
| | | | | | number in more places. (This used to be commit df9cebcb97e20564359097148665bd519f31bc6f)
* r25027: Fix more warnings.Jelmer Vernooij2007-10-101-0/+1
| | | | (This used to be commit 5085c53fcfade614e83d21fc2c1a5bc43bb2a729)
* r25000: Fix some more C++ compatibility warnings.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 08bb1ef643ab906f1645cf6f32763dc73b1884e4)
* r24994: Fix some C++ warnings.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 925abf74fa1ed5ae726bae8781ec549302786b39)
* r23792: convert Samba4 to GPLv3Andrew Tridgell2007-10-101-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)
* r22866: handle incoming chained smb2 requests in our server code to letStefan Metzmacher2007-10-101-12/+12
| | | | | | | the windows explorer in longhorn beta3 work. metze (This used to be commit 2390c9f24daccec917608cac0870890cdc73cb1c)
* r17930: Merge noinclude branch:Jelmer Vernooij2007-10-101-1/+1
| | | | | | | * Move dlinklist.h, smb.h to subsystem-specific directories * Clean up ads.h and move what is left of it to dsdb/ (only place where it's used) (This used to be commit f7afa1cb77f3cfa7020b57de12e6003db7cfcc42)
* r17083: - implement SMB2 Cancel in the clientStefan Metzmacher2007-10-101-2/+9
| | | | | | | | - the 0xffffffffffffffff seqnum is reserved for SMB2 Break (oplock breaks) so don't use it in a request. we should someday try to test this... metze (This used to be commit 730cdc4475822e28cb400116641294a7f98ad0b5)
* r16873: - grow the buffer with the correct size, we maybe had 1 byte ↵Stefan Metzmacher2007-10-101-8/+8
| | | | | | | | | preallocated - body_size doesn't contain the preallocated byte so don't remove it metze (This used to be commit 3cf50e26b7dc11d85c46ef81a36c74acf97085c0)
* r16734: the 2 bytes after the opcode and before the flags,Stefan Metzmacher2007-10-101-2/+2
| | | | | | | | | is no padding... the following patch is needed for vista beta2 to connect to samba4 metze (This used to be commit 58baae8fc463cd2c4e4ce532c153ad80313b03eb)
* r16705: fix a bug found by valgrind...Stefan Metzmacher2007-10-101-8/+25
| | | | | | | | | | as we setup the 1 padding byte for non present dynamic part, we need to overwrite it when we're getting a real dynamic part, so we need to remove the buf->size +=1 when we do the first push to the dynamic part (when buf->dynamic is still but->body + buf->body_fixed) metze (This used to be commit f309209629ad1b63a76fc06163a3eeb07dce4c86)
* r16566: add pull function for a site32/offset32 blobStefan Metzmacher2007-10-101-0/+24
| | | | | metze (This used to be commit 81702c36c28e9e32860c5d91887d2ad2121ce306)
* r15770: when there's a dynamic body, we need to send the first byte even if theStefan Metzmacher2007-10-101-0/+1
| | | | | | | dynamic size if 0 metze (This used to be commit c7e8e79d75fd53fa37e9220e5bc9cac7ab574ff6)
* r15744: convert_string_talloc() handles src_len == 0 as errorStefan Metzmacher2007-10-101-0/+8
| | | | | | | but it's valid in this case metze (This used to be commit 92c19b1ba4e89bd1e973e084b254087c98ceac18)
* r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0Stefan Metzmacher2007-10-101-3/+14
| | | | | | | also if the dynamic flag should be set metze (This used to be commit 7829100e1ee79f4f5d24004af221288e19c09b3e)
* r15191: Avoid uint_t as it's not standard.Jelmer Vernooij2007-10-101-1/+1
| | | | (This used to be commit 7af59357b94e3819415b3a9257be0ced745ce130)
* r14434: use the right enum typeAndrew Tridgell2007-10-101-1/+1
| | | | (This used to be commit 507def57cb83a3e12a3c8d60eb833fe47e9ec9e8)
* r12608: Remove some unused #include lines.Jelmer Vernooij2007-10-101-1/+0
| | | | (This used to be commit 70e7449318aa0e9d2639c76730a7d1683b2f4981)
* r11780: it turns out that the MxAc tag isn't a security descriptor, its aAndrew Tridgell2007-10-101-1/+1
| | | | | | request that the server return its own MxAc blob which contains the maximum allowed access_mask for the returned file handle (This used to be commit c0288aa8cd46ca384074f89430c226d725c39475)