summaryrefslogtreecommitdiff
path: root/source4/smb_server/blob.c
AgeCommit message (Collapse)AuthorFilesLines
2013-04-03ntvfs: support setfileinfo with FULL_EA_INFORMATIONDavid Disseldorp1-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
2012-02-07smb_server: Preserve signedness of string push return value.Jelmer Vernooij1-1/+1
2010-09-15s4-smb: smbsrv_blob_push_string() can return -1Andrew Tridgell1-8/+11
need to use ssize_t, not size_t for error handling
2010-06-29s4:smb_server/blob.c - remove unused codeMatthias Dieter Wallnöfer1-8/+0
Spotted by the Solaris 10 compiler
2010-02-02Change uint_t to unsigned int in source4Matt Kraai1-4/+4
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-12-10s4-server: use GUID_to_ndr_blob() in cldap and smb serversAndrew Tridgell1-6/+4
2009-09-19s4-smbd: minimise includes in smbd/ and smb_serverAndrew Tridgell1-2/+0
2008-10-24Remove unused include param/param.h.Jelmer Vernooij1-1/+0
2008-10-24Remove iconv_convenience parameter from simple string push/pullJelmer Vernooij1-2/+2
functions.
2008-10-11Fix include paths to new location of libutil.Jelmer Vernooij1-1/+1
2008-09-24- add reserved field in basic_information levelAndrew Tridgell1-3/+25
- use INVALID_PARAMETER for info length mismatch to match windows behaviour - added parsing of LINK_INFORMATION level
2008-05-23fix make test for EAs againAndrew Tridgell1-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)
2008-05-22pass in the required alignment to the EA construction routinesAndrew Tridgell1-2/+2
(This used to be commit af31030e0b78b6b220740529901ec8d2d9f5a3fe)
2008-05-22fixed parsing of the SMB2 ALL_INFO qfileinfo levelAndrew Tridgell1-1/+2
(This used to be commit a7be5ba22e0cf2c61501f5a05e64673f31ba145c)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-02-14A better way to handle the different format of RenameInformation in SMB2Andrew Tridgell1-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)
2008-02-14Fixed SMB2 rename operations from Vista clientsAndrew Tridgell1-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)
2008-02-14Convert SMB and SMB2 code to use a common buffer handling structureAndrew Tridgell1-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)
2008-01-01r26638: libndr: Require explicitly specifying iconv_convenience for ↵Jelmer Vernooij1-1/+1
ndr_struct_push_blob(). (This used to be commit 61ad78ac98937ef7a9aa32075a91a1c95b7606b3)
2007-12-21r26429: Avoid use of global_smb_iconv_convenience.Jelmer Vernooij1-2/+3
(This used to be commit d37136b7abfbba75ef2e5ab855eb3382b9648b8c)
2007-12-21r26316: Use contexts for conversion functions.Jelmer Vernooij1-2/+2
(This used to be commit f6420d933b5b011d428974f3a2a57edf19e6f482)
2007-12-21r25920: ndr: change NTSTAUS into enum ndr_err_code (samba4 callers)Stefan Metzmacher1-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)
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-10r23067: use 'const union smb_search_data *file' also in the server code to ↵Stefan Metzmacher1-1/+1
get rid of compiler warnings in the cifs backend metze (This used to be commit 34ef07b1f5acdad27edd80de8de4c6de7f879f9b)
2007-10-10r18839: align all directory search blobs on an 8 byte boundary to keep theAndrew Tridgell1-4/+15
current vista release happy. (This used to be commit d3f0114a9dc8458cccfda71087668b1ddf4d380c)
2007-10-10r17930: Merge noinclude branch:Jelmer Vernooij1-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)
2007-10-10r16871: zero padding bytesStefan Metzmacher1-0/+1
(found by valgrind) metze (This used to be commit 283bec8295b6302dfe3dc12c82d7870bdfee8b37)
2007-10-10r16834: split the level's of smb_search_first/smb_search_next and the levelsStefan Metzmacher1-7/+7
of smb_search_data metze (This used to be commit 78c201db8a47a71908698c4dda2add4cf85694d9)
2007-10-10r16815: split out search levels which are also used by smb2Stefan Metzmacher1-0/+146
metze (This used to be commit 3b8ecc19fac6f9d52adae86767ca153ab719d00d)
2007-10-10r16671: allow usage of smbsrv_pull_passthru_sfileinfo() without,Stefan Metzmacher1-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)
2007-10-10r16621: split out passthru levels of setfileinfoStefan Metzmacher1-0/+87
metze (This used to be commit 6cd64cb78f23c88029b8b5ef712b3f8a26e8528f)
2007-10-10r16466: for SMB2_ALL_EAS it's not valid for the ntvfs backends to returnStefan Metzmacher1-0/+9
0 eas, they should return an error: NO_EAS_ON_FILE or NO_MORE_EAS metze (This used to be commit fdefec1de99273978345d4a183a9660bd741e045)
2007-10-10r16457: fix typoStefan Metzmacher1-1/+1
metze (This used to be commit 049ddc8a96da7a8fb0bbf1ef652c1963e9103d9b)
2007-10-10r16449: move some code to a generic placeStefan Metzmacher1-0/+486
metze (This used to be commit 77a711c54ae7543a26f0ace1f189d6ed580c48d9)