summaryrefslogtreecommitdiff
path: root/source4/libcli/raw/interfaces.h
diff options
context:
space:
mode:
authorZach Loafman <zachary.loafman@isilon.com>2009-03-27 19:12:43 -0700
committerSteven Danneman <steven.danneman@isilon.com>2009-03-28 01:01:47 -0700
commit92f3686c962d67a5feab00b9e8abdb87ddb832a6 (patch)
tree2a5d7f2b2cc61195a6704157766d58fbc1164581 /source4/libcli/raw/interfaces.h
parent0b890ae19a6e9dad9bdff248ada3fdee9416ab96 (diff)
downloadsamba-92f3686c962d67a5feab00b9e8abdb87ddb832a6.tar.gz
samba-92f3686c962d67a5feab00b9e8abdb87ddb832a6.tar.bz2
samba-92f3686c962d67a5feab00b9e8abdb87ddb832a6.zip
s4:smb2: Add rudimentary SMB2.1 lease support to libcli
Add the structures, constants, and marshalling for SMB2.1 leases.
Diffstat (limited to 'source4/libcli/raw/interfaces.h')
-rw-r--r--source4/libcli/raw/interfaces.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/libcli/raw/interfaces.h b/source4/libcli/raw/interfaces.h
index a0584c0aa4..bd93fa1695 100644
--- a/source4/libcli/raw/interfaces.h
+++ b/source4/libcli/raw/interfaces.h
@@ -53,6 +53,16 @@ struct smb2_handle {
uint64_t data[2];
};
+/*
+ SMB2 lease structure (per MS-SMB2 2.2.13)
+*/
+struct smb2_lease {
+ uint64_t lease_key[2];
+ uint32_t lease_state;
+ uint32_t lease_flags; /* should be 0 */
+ uint64_t lease_duration; /* should be 0 */
+};
+
struct ntvfs_handle;
/*
@@ -1633,6 +1643,7 @@ union smb_open {
bool query_maximal_access;
NTTIME timewarp;
bool query_on_disk_id;
+ struct smb2_lease *lease_request;
/* and any additional blobs the caller wants */
struct smb2_create_blobs {
@@ -1666,6 +1677,7 @@ union smb_open {
/* optional return values matching tagged values in the call */
uint32_t maximal_access;
uint8_t on_disk_id[32];
+ struct smb2_lease lease_response;
/* tagged blobs in the reply */
struct smb2_create_blobs blobs;