summaryrefslogtreecommitdiff
path: root/source3/smbd/proto.h
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2022-09-01 14:49:33 +0200
committerRalph Boehme <slow@samba.org>2022-09-02 13:31:38 +0000
commitefc81874ef3bdf2ddc71185a3db84338cade011e (patch)
tree6ec0e416bc829ce104b3cc1cdb624546cc11424e /source3/smbd/proto.h
parent43811868d1d55ee6d23de3956d73c25b163b671c (diff)
downloadsamba-efc81874ef3bdf2ddc71185a3db84338cade011e.tar.gz
smbd: Convert smb2_posix_cc_info() to use an existing blob
Less malloc Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org>
Diffstat (limited to 'source3/smbd/proto.h')
-rw-r--r--source3/smbd/proto.h12
1 files changed, 8 insertions, 4 deletions
diff --git a/source3/smbd/proto.h b/source3/smbd/proto.h
index a0870089925..4c92913a6da 100644
--- a/source3/smbd/proto.h
+++ b/source3/smbd/proto.h
@@ -1258,10 +1258,14 @@ NTSTATUS vfs_default_durable_reconnect(struct connection_struct *conn,
DATA_BLOB *new_cookie);
/* The following definitions come from smbd/smb2_posix.c */
-DATA_BLOB smb2_posix_cc_info(TALLOC_CTX *mem_ctx,
- connection_struct *conn,
- uint32_t reparse_tag,
- const SMB_STRUCT_STAT *psbuf);
+ssize_t smb2_posix_cc_info(
+ connection_struct *conn,
+ uint32_t reparse_tag,
+ const SMB_STRUCT_STAT *psbuf,
+ const struct dom_sid *owner,
+ const struct dom_sid *group,
+ uint8_t *buf,
+ size_t buflen);
DATA_BLOB store_smb2_posix_info(TALLOC_CTX *mem_ctx,
connection_struct *conn,
const SMB_STRUCT_STAT *psbuf,