summaryrefslogtreecommitdiff
path: root/source3/libsmb
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 20:42:20 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 20:50:16 +0200
commit4154b374d6fab6a3cf7bc16823405c87aa7ead42 (patch)
treef2fd88ba01cff288bd5494f3b8416e2de1b2a8e5 /source3/libsmb
parent43976bdececee5b2e4b70e5dffec5c2244092635 (diff)
downloadsamba-4154b374d6fab6a3cf7bc16823405c87aa7ead42.tar.gz
samba-4154b374d6fab6a3cf7bc16823405c87aa7ead42.tar.bz2
samba-4154b374d6fab6a3cf7bc16823405c87aa7ead42.zip
s3:libsmb: add cli_state_server_time_zone()
metze
Diffstat (limited to 'source3/libsmb')
-rw-r--r--source3/libsmb/clientgen.c5
-rw-r--r--source3/libsmb/proto.h1
2 files changed, 6 insertions, 0 deletions
diff --git a/source3/libsmb/clientgen.c b/source3/libsmb/clientgen.c
index 8cbd82aabc..0cfaec612a 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -529,6 +529,11 @@ uint16_t cli_state_security_mode(struct cli_state *cli)
return cli->sec_mode;
}
+int cli_state_server_time_zone(struct cli_state *cli)
+{
+ return cli->serverzone;
+}
+
struct cli_echo_state {
uint16_t vwv[1];
DATA_BLOB data;
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 0f1ea98b08..67a68d19d4 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -184,6 +184,7 @@ uint32_t cli_state_capabilities(struct cli_state *cli);
uint32_t cli_state_available_size(struct cli_state *cli, uint32_t ofs);
uint16_t cli_state_max_requests(struct cli_state *cli);
uint16_t cli_state_security_mode(struct cli_state *cli);
+int cli_state_server_time_zone(struct cli_state *cli);
struct tevent_req *cli_echo_send(TALLOC_CTX *mem_ctx, struct event_context *ev,
struct cli_state *cli, uint16_t num_echos,
DATA_BLOB data);