diff options
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb2_constants.h | 3 | ||||
-rw-r--r-- | libcli/smb/smb2_lease.h | 17 | ||||
-rwxr-xr-x | libcli/smb/wscript | 5 |
3 files changed, 5 insertions, 20 deletions
diff --git a/libcli/smb/smb2_constants.h b/libcli/smb/smb2_constants.h index 40a63396af..0b34723c75 100644 --- a/libcli/smb/smb2_constants.h +++ b/libcli/smb/smb2_constants.h @@ -181,9 +181,6 @@ /* SMB2 lease bits */ #define SMB2_LEASE_NONE 0x00 -#define SMB2_LEASE_READ 0x01 -#define SMB2_LEASE_HANDLE 0x02 -#define SMB2_LEASE_WRITE 0x04 /* SMB2 lease flags */ #define SMB2_LEASE_FLAG_BREAK_IN_PROGRESS 0x00000002 diff --git a/libcli/smb/smb2_lease.h b/libcli/smb/smb2_lease.h index 73f97acb75..ba8178dba0 100644 --- a/libcli/smb/smb2_lease.h +++ b/libcli/smb/smb2_lease.h @@ -23,22 +23,7 @@ #ifndef _LIBCLI_SMB_SMB2_LEASE_H_ #define _LIBCLI_SMB_SMB2_LEASE_H_ -/* - SMB2 lease structure (per MS-SMB2 2.2.13) -*/ -struct smb2_lease_key { - uint64_t data[2]; -}; - -struct smb2_lease { - struct smb2_lease_key lease_key; - uint32_t lease_state; - uint32_t lease_flags; - uint64_t lease_duration; /* should be 0 */ - /* only for v2 */ - struct smb2_lease_key parent_lease_key; - uint16_t lease_epoch; -}; +#include "librpc/gen_ndr/smb2_lease_struct.h" /* * Parse a smb2 lease create context. Return -1 on error, buffer.length on diff --git a/libcli/smb/wscript b/libcli/smb/wscript index f28b7454b4..17efc97b47 100755 --- a/libcli/smb/wscript +++ b/libcli/smb/wscript @@ -40,7 +40,10 @@ def build(bld): smb2cli_echo.c tstream_smbXcli_np.c ''', - deps='LIBCRYPTO errors gensec krb5samba smb_transport', + deps=''' + LIBCRYPTO NDR_SMB2_LEASE_STRUCT errors gensec krb5samba + smb_transport + ''', public_deps='talloc samba-util', private_library=True, public_headers=''' |