diff options
Diffstat (limited to 'libcli/smb/smb2_lease.h')
-rw-r--r-- | libcli/smb/smb2_lease.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/libcli/smb/smb2_lease.h b/libcli/smb/smb2_lease.h index 7fc598b258..fa8e7af841 100644 --- a/libcli/smb/smb2_lease.h +++ b/libcli/smb/smb2_lease.h @@ -40,4 +40,11 @@ struct smb2_lease { uint16_t lease_epoch; }; +/* + * Parse a smb2 lease create context. Return -1 on error, buffer.length on + * success. V1 and V2 differ only by length of buffer.length + */ +ssize_t smb2_lease_pull(uint8_t *buf, size_t len, struct smb2_lease *lease); +bool smb2_lease_push(const struct smb2_lease *lease, uint8_t *buf, size_t len); + #endif /* _LIBCLI_SMB_SMB2_LEASE_H_ */ |