summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/create.c
AgeCommit message (Collapse)AuthorFilesLines
2013-08-23libsmb2: Fix opening the rootdirectory, part 1Volker Lendecke1-0/+15
[MS-SMB2], 2.2.13 says: In the request, the Buffer field MUST be at least one byte in length. Implement that for the 0-length filename without create blobs. Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
2013-04-30libsmb: Use sizeof instead of explicit numbersVolker Lendecke1-6/+6
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org> Autobuild-User(master): Stefan Metzmacher <metze@samba.org> Autobuild-Date(master): Tue Apr 30 16:02:19 CEST 2013 on sn-devel-104
2013-04-30libsmb: Use smb2_lease_push in smb2_create_sendVolker Lendecke1-12/+10
Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Stefan Metzmacher <metze@samba.org>
2013-04-18s4:torture/smb2: add smb2_lease_v2_create_share() helperStefan Metzmacher1-1/+1
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2013-04-18s4:libcli/smb2: add support for SMB2 LEASES v2Stefan Metzmacher1-5/+43
Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
2012-09-19s4:libci: add a SMB2_CREATE_APP_INSTANCE_ID blob to the request if the ↵Michael Adam1-0/+25
in.app_instance_id is present
2012-03-03s4:libcli:smb2: add support for parsing the durable handle v2 response in ↵Michael Adam1-0/+19
smb2_create_recv()
2012-03-03s4:libcli:smb2: add support durable handle reconnect v2 blob in smb2_create_sendMichael Adam1-0/+27
2012-03-03s4:libcli:smb2: add support durable handle request v2 blob in smb2_create_sendMichael Adam1-0/+28
2011-10-30s4:libcli: in smb2_create_recv, map SMB2_CREATE_DURABLE_HANDLE_RESPONSE ↵Michael Adam1-0/+7
buffer smb2_create.out.durable_open
2010-05-18Finish removal of iconv_convenience in public API's.Jelmer Vernooij1-2/+1
2009-08-12libcli/smb: move smb2_create_blob code to libcli/smb/Stefan Metzmacher1-157/+0
I want to use this in source3/smbd/ metze
2009-04-01s4:smb2: Add lease break support for SMB2.1Zach Loafman1-2/+2
Add the structures and marshalling for the lease break variants of the oplock break / oplock break ack messages.
2009-03-28s4:smb2: Add rudimentary SMB2.1 lease support to libcliZach Loafman1-0/+30
Add the structures, constants, and marshalling for SMB2.1 leases.
2008-05-29fixed offset for maximal access responseAndrew Tridgell1-1/+1
(This used to be commit ddd0bb32510d615c7b943fb4ce4c9c275b98ab89)
2008-05-28updated comment based on MS-SMB2 docsAndrew Tridgell1-1/+2
(This used to be commit 5754cc13514a0f5fe4c47ce53521c256c9d96487)
2008-05-28ensure we don't change the incoming blobs in a SMB2 createAndrew Tridgell1-1/+16
(This used to be commit a6cc89fffe8c149b540f2125cea57f31331d5460)
2008-05-28expose a function for pushing all SMB2 create blobsAndrew Tridgell1-17/+36
(This used to be commit f5985a0490e4105a9b0208f6b7b19e635db324f9)
2008-05-28added support for all of the known SMB2 create tags in our clientAndrew Tridgell1-7/+179
library (This used to be commit 597b38e97b01d2137e6ac96ca07cd56fadb2c09e)
2008-05-27don't alter the in blobs in a SMB2 create, otherwise two calls in aAndrew Tridgell1-5/+6
row will fail (This used to be commit 3b811a52fe9a8356337ad149d01a3498c09d900a)
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-04-17libcli/smb2: make it possible to pass additional extra blobs in smb2_create()Stefan Metzmacher1-23/+71
This also fixes the alignment from 8 to 4 byte bounderies. metze (This used to be commit e0a0d8e36acd735b587cd7870625af52c5dc3431)
2008-04-02Install public header files again and include required prototypes.Jelmer Vernooij1-0/+1
(This used to be commit 47ffbbf67435904754469544390b67d34c958343)
2008-02-13updated SMB2 create operation to match WSPP.Andrew Tridgell1-26/+26
Adding some defined for various new create options (This used to be commit d037dc23ced3df6bce98cbf4810fb5f1247336bd)
2007-10-10r25554: Convert last instances of BOOL, True and False to the standard types.Jelmer Vernooij1-5/+5
(This used to be commit 566aa14139510788548a874e9213d91317f83ca9)
2007-10-10r24780: More work allowing libutil to be used by external users.Jelmer Vernooij1-3/+2
(This used to be commit 31993cf67b816a184a4a4e92ef8ca2532c797190)
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-10r22791: make it possible to use smb2_create_blob_add() in the server code tooStefan Metzmacher1-3/+3
metze (This used to be commit c08eeb62ca001cebcb7af2b655269e4b388e69c1)
2007-10-10r20650: revert a bunch of code I didn't mean to commit yetAndrew Tridgell1-1/+0
(This used to be commit b3e2d4908781781a487eaeb683d22eb967e5597d)
2007-10-10r20647: add cluster codeAndrew Tridgell1-0/+1
(This used to be commit 5870830b99a8d76bda1ff5af3fcf8dda9aba50ec)
2007-10-10r15741: move smb2 request structures into the main smb request structsStefan Metzmacher1-1/+1
as new levels metze (This used to be commit 91806353174704857dfcc15a730af7232cfde660)
2007-10-10r15532: add a BOOL body_dynamic_present, because the body_dynamic_size can be 0Stefan Metzmacher1-1/+1
also if the dynamic flag should be set metze (This used to be commit 7829100e1ee79f4f5d24004af221288e19c09b3e)
2007-10-10r11888: - added SMB2 trans supportAndrew Tridgell1-1/+1
- added session key to SMB2 - renamed 'unknown2' in create to 'impersonation' (This used to be commit aef915f312a78bf8a4123f7c40fcd14ff293d934)
2007-10-10r11780: it turns out that the MxAc tag isn't a security descriptor, its aAndrew Tridgell1-17/+10
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)
2007-10-10r11775: added support for creating files on SMB2 with initial EA lists and ↵Andrew Tridgell1-2/+63
an ACL (This used to be commit ff197092988cee64742f83df23c43ae664a196f9)
2007-10-10r11754: make the SMB2 blob push routines take offsets, so they fit better withAndrew Tridgell1-2/+2
the rest of the packet construction code (This used to be commit 387ec2b17ff30a1c040b460b498c8fa7d8770593)
2007-10-10r11741: - the buffer code (first 2 bytes in the SMB2 body) seem to be the lengthStefan Metzmacher1-36/+23
of the fixed body part, and +1 if there's a dynamic part - there're 3 types of dynamic blobs with uint16_t offset/uint16_t size with uint16_t offset/uint32_t size with uint32_t offset/uint32_t size /* aligned to 8 bytes */ - strings are transmitted in UTF-16 with no termination and packet into a uint16/uint16 blob metze (This used to be commit 79103c51e5c752fbdb4d25a0047b65002828df89)
2007-10-10r11697: - added a generic SMB2 getinfo callAndrew Tridgell1-3/+0
- added a SMB2-SCANGETINFO test for scanning for available info levels - added names for the info levels I recognise to smb2.h (This used to be commit fe5986067e2aaca039d70393ccc8761434f18fe6)
2007-10-10r11694: fixed 2 valgrind errorsAndrew Tridgell1-1/+1
(This used to be commit 6381fe72417a5cd231b63a87a6a0ba9c65030ce6)
2007-10-10r11691: added reply buffer code checks and oplock flags for create request/replyAndrew Tridgell1-11/+17
(This used to be commit 26ed781375c03958241d8c93324e04e948944d01)
2007-10-10r11683: fixed create callAndrew Tridgell1-2/+2
(This used to be commit 02d733190340fbb611443b0cc484813ba026eafe)
2007-10-10r11681: filled in a few more smb2_create() fieldsAndrew Tridgell1-9/+6
(This used to be commit a95413568f1e45691524dfd8e9159a3bafe358ea)
2007-10-10r11680: added smb2_close(). This also demonstrates that file handles are 16Andrew Tridgell1-6/+5
bytes, not 20 bytes (metze, you were right!) (This used to be commit d3bcc6628cde9ddedf0fd408cbee573f133ce582)
2007-10-10r11679: opening/creating files in SMB2 now works. Lots of unknown parametersAndrew Tridgell1-0/+124
in the call tho. (This used to be commit 548fbd86b3b114493943b50669bdcba2f4ed87f2)