summaryrefslogtreecommitdiffstats
path: root/source4/smb_server/blob.c
Commit message (Collapse)AuthorAgeFilesLines
* ntvfs: support setfileinfo with FULL_EA_INFORMATIONDavid Disseldorp2013-04-031-0/+6
| | | | | | | | | | Use existing unmarshall and set helper functions. This allows the smb2.setinfo.setinfo test to run against the ntvfs file server. Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Wed Apr 3 16:14:33 CEST 2013 on sn-devel-104
* smb_server: Preserve signedness of string push return value.Jelmer Vernooij2012-02-071-1/+1
|
* s4-smb: smbsrv_blob_push_string() can return -1Andrew Tridgell2010-09-151-8/+11
| | | | need to use ssize_t, not size_t for error handling
* s4:smb_server/blob.c - remove unused codeMatthias Dieter Wallnöfer2010-06-291-8/+0
| | | | Spotted by the Solaris 10 compiler
* Change uint_t to unsigned int in source4Matt Kraai2010-02-021-4/+4
| | | | Signed-off-by: Stefan Metzmacher <metze@samba.org>
* s4-server: use GUID_to_ndr_blob() in cldap and smb serversAndrew Tridgell2009-12-101-6/+4
|
* s4-smbd: minimise includes in smbd/ and smb_serverAndrew Tridgell2009-09-191-2/+0
|
* Remove unused include param/param.h.Jelmer Vernooij2008-10-241-1/+0
|
* Remove iconv_convenience parameter from simple string push/pullJelmer Vernooij2008-10-241-2/+2
| | | | functions.
* Fix include paths to new location of libutil.Jelmer Vernooij2008-10-111-1/+1
|
* - add reserved field in basic_information levelAndrew Tridgell2008-09-241-3/+25
| | | | | | | - use INVALID_PARAMETER for info length mismatch to match windows behaviour - added parsing of LINK_INFORMATION level
* fix make test for EAs againAndrew Tridgell2008-05-231-2/+2
| | | | | | | - go back to 4 byte alignment until I work out the rules that Vista wants more exactly - add the zero sized EA handling for SMB2 more generically (This used to be commit 326b69bc8064cbea357864cecd6bd27b50c57184)
* pass in the required alignment to the EA construction routinesAndrew Tridgell2008-05-221-2/+2
| | | | (This used to be commit af31030e0b78b6b220740529901ec8d2d9f5a3fe)
* fixed parsing of the SMB2 ALL_INFO qfileinfo levelAndrew Tridgell2008-05-221-1/+2
| | | | (This used to be commit a7be5ba22e0cf2c61501f5a05e64673f31ba145c)
* Install public header files again and include required prototypes.Jelmer Vernooij2008-04-021-0/+1
| | | | (This used to be commit 47ffbbf67435904754469544390b67d34c958343)
* A better way to handle the different format of RenameInformation in SMB2Andrew Tridgell2008-02-141-13/+25
| | | | | | We now define a separate info level RAW_SFILEINFO_RENAME_INFORMATION_SMB2 and set that level when handling SMB2 packets. This makes the parsers clearer. (This used to be commit f6cdf3f1177f63d80be757f007eb15380839b4f5)
* Fixed SMB2 rename operations from Vista clientsAndrew Tridgell2008-02-141-9/+18
| | | | | | | | | | 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-10/+6
| | | | | | | | | | | | | | | | | | | 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)
* r26638: libndr: Require explicitly specifying iconv_convenience for ↵Jelmer Vernooij2008-01-011-1/+1
| | | | | | ndr_struct_push_blob(). (This used to be commit 61ad78ac98937ef7a9aa32075a91a1c95b7606b3)
* 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)
* r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher2007-12-211-5/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lib/messaging/ lib/registry/ lib/ldb-samba/ librpc/rpc/ auth/auth_winbind.c auth/gensec/ auth/kerberos/ dsdb/repl/ dsdb/samdb/ dsdb/schema/ torture/ cluster/ctdb/ kdc/ ntvfs/ipc/ torture/rap/ ntvfs/ utils/getntacl.c ntptr/ smb_server/ libcli/wrepl/ wrepl_server/ libcli/cldap/ libcli/dgram/ libcli/ldap/ libcli/raw/ libcli/nbt/ libnet/ winbind/ rpc_server/ metze (This used to be commit 6223c7fddc972687eb577e04fc1c8e0604c35435)
* 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)
* r23067: use 'const union smb_search_data *file' also in the server code to ↵Stefan Metzmacher2007-10-101-1/+1
| | | | | | | | | get rid of compiler warnings in the cifs backend metze (This used to be commit 34ef07b1f5acdad27edd80de8de4c6de7f879f9b)
* r18839: align all directory search blobs on an 8 byte boundary to keep theAndrew Tridgell2007-10-101-4/+15
| | | | | current vista release happy. (This used to be commit d3f0114a9dc8458cccfda71087668b1ddf4d380c)
* 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)
* r16871: zero padding bytesStefan Metzmacher2007-10-101-0/+1
| | | | | | | (found by valgrind) metze (This used to be commit 283bec8295b6302dfe3dc12c82d7870bdfee8b37)
* r16834: split the level's of smb_search_first/smb_search_next and the levelsStefan Metzmacher2007-10-101-7/+7
| | | | | | | of smb_search_data metze (This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
* r16815: split out search levels which are also used by smb2Stefan Metzmacher2007-10-101-0/+146
| | | | | metze (This used to be commit 3b8ecc19fac6f9d52adae86767ca153ab719d00d)
* r16671: allow usage of smbsrv_pull_passthru_sfileinfo() without,Stefan Metzmacher2007-10-101-0/+7
| | | | | | | | | a smbsrv_request given... the RENAME level is not supported in this mode, but that will be fixed later metze (This used to be commit 058c6397a4018975f62e8277b905a2566c3b2fe0)
* r16621: split out passthru levels of setfileinfoStefan Metzmacher2007-10-101-0/+87
| | | | | metze (This used to be commit 6cd64cb78f23c88029b8b5ef712b3f8a26e8528f)
* r16466: for SMB2_ALL_EAS it's not valid for the ntvfs backends to returnStefan Metzmacher2007-10-101-0/+9
| | | | | | | | 0 eas, they should return an error: NO_EAS_ON_FILE or NO_MORE_EAS metze (This used to be commit fdefec1de99273978345d4a183a9660bd741e045)
* r16457: fix typoStefan Metzmacher2007-10-101-1/+1
| | | | | metze (This used to be commit 049ddc8a96da7a8fb0bbf1ef652c1963e9103d9b)
* r16449: move some code to a generic placeStefan Metzmacher2007-10-101-0/+486
metze (This used to be commit 77a711c54ae7543a26f0ace1f189d6ed580c48d9)