diff options
Diffstat (limited to 'libcli')
-rw-r--r-- | libcli/smb/smb2_lease.c | 3 | ||||
-rw-r--r-- | libcli/smb/smb2_lease.h | 3 |
2 files changed, 4 insertions, 2 deletions
diff --git a/libcli/smb/smb2_lease.c b/libcli/smb/smb2_lease.c index 10beacac25..9e6c950d33 100644 --- a/libcli/smb/smb2_lease.c +++ b/libcli/smb/smb2_lease.c @@ -23,7 +23,8 @@ #include "includes.h" #include "../libcli/smb/smb_common.h" -ssize_t smb2_lease_pull(uint8_t *buf, size_t len, struct smb2_lease *lease) +ssize_t smb2_lease_pull(const uint8_t *buf, size_t len, + struct smb2_lease *lease) { int version; diff --git a/libcli/smb/smb2_lease.h b/libcli/smb/smb2_lease.h index fa8e7af841..73f97acb75 100644 --- a/libcli/smb/smb2_lease.h +++ b/libcli/smb/smb2_lease.h @@ -44,7 +44,8 @@ struct smb2_lease { * 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); +ssize_t smb2_lease_pull(const 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_ */ |