summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2011-09-13 21:41:17 +0200
committerStefan Metzmacher <metze@samba.org>2011-09-13 21:53:07 +0200
commitd62f1e1e19965808faa148addc813f08eea3ccc6 (patch)
treebc7dcf5c0d9e1711e2718fc42576dbd28298c59b
parent4154b374d6fab6a3cf7bc16823405c87aa7ead42 (diff)
downloadsamba-d62f1e1e19965808faa148addc813f08eea3ccc6.tar.gz
samba-d62f1e1e19965808faa148addc813f08eea3ccc6.tar.bz2
samba-d62f1e1e19965808faa148addc813f08eea3ccc6.zip
s3:libsmb: add cli_state_server_time()
metze
-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 0cfaec612a..db5e545919 100644
--- a/source3/libsmb/clientgen.c
+++ b/source3/libsmb/clientgen.c
@@ -534,6 +534,11 @@ int cli_state_server_time_zone(struct cli_state *cli)
return cli->serverzone;
}
+time_t cli_state_server_time(struct cli_state *cli)
+{
+ return cli->servertime;
+}
+
struct cli_echo_state {
uint16_t vwv[1];
DATA_BLOB data;
diff --git a/source3/libsmb/proto.h b/source3/libsmb/proto.h
index 67a68d19d4..fef7ae0502 100644
--- a/source3/libsmb/proto.h
+++ b/source3/libsmb/proto.h
@@ -185,6 +185,7 @@ 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);
+time_t cli_state_server_time(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);