summaryrefslogtreecommitdiff
path: root/source4/libcli/smb2/request.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2005-11-14 05:09:26 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:46:17 -0500
commitc6395a30b057c87de8ce410d5ea5ebe2e017093d (patch)
treef33078b5880ae66d9f51fe809a6369a17d5aa931 /source4/libcli/smb2/request.c
parent6f49a2404cde1e3e8a20e7ce270e28191ab9037e (diff)
downloadsamba-c6395a30b057c87de8ce410d5ea5ebe2e017093d.tar.gz
samba-c6395a30b057c87de8ce410d5ea5ebe2e017093d.tar.bz2
samba-c6395a30b057c87de8ce410d5ea5ebe2e017093d.zip
r11715: added SMB2 read and write requests
(This used to be commit d3556cbfa38447d2d385b697c1855b3c13d42744)
Diffstat (limited to 'source4/libcli/smb2/request.c')
-rw-r--r--source4/libcli/smb2/request.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/source4/libcli/smb2/request.c b/source4/libcli/smb2/request.c
index 4b95d141a3..a06121df05 100644
--- a/source4/libcli/smb2/request.c
+++ b/source4/libcli/smb2/request.c
@@ -23,6 +23,7 @@
#include "includes.h"
#include "libcli/raw/libcliraw.h"
#include "libcli/smb2/smb2.h"
+#include "libcli/smb2/smb2_calls.h"
#include "include/dlinklist.h"
#include "lib/events/events.h"
@@ -261,3 +262,14 @@ NTSTATUS smb2_string_blob(TALLOC_CTX *mem_ctx, const char *str, DATA_BLOB *blob)
blob->length = size;
return NT_STATUS_OK;
}
+
+
+/*
+ put a file handle into a buffer
+*/
+void smb2_put_handle(uint8_t *data, struct smb2_handle h)
+{
+ SBVAL(data, 0, h.data[0]);
+ SBVAL(data, 8, h.data[1]);
+}
+