diff options
Diffstat (limited to 'source3')
-rw-r--r-- | source3/libsmb/clientgen.c | 5 | ||||
-rw-r--r-- | source3/libsmb/proto.h | 1 |
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); |