summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2008-05-20 11:57:43 +1000
committerAndrew Tridgell <tridge@samba.org>2008-05-20 11:57:43 +1000
commit9c6a35ad9ba9458fe9d3a73ba1f785a61305e2aa (patch)
tree3322af08e958f46f47b93dc9d81aca0024284b19
parent9551d4027dd9bbdfa1fcb4a5a117792811ec7f29 (diff)
downloadsamba-9c6a35ad9ba9458fe9d3a73ba1f785a61305e2aa.tar.gz
samba-9c6a35ad9ba9458fe9d3a73ba1f785a61305e2aa.tar.bz2
samba-9c6a35ad9ba9458fe9d3a73ba1f785a61305e2aa.zip
remember the server time fields on negotiate. Needed for gentest
(This used to be commit 7989ca861dcc700b52be3a47ea5ae8b03fbb9330)
-rw-r--r--source4/libcli/smb2/connect.c3
-rw-r--r--source4/libcli/smb2/smb2.h2
2 files changed, 5 insertions, 0 deletions
diff --git a/source4/libcli/smb2/connect.c b/source4/libcli/smb2/connect.c
index 867af14c92..eabfa410ad 100644
--- a/source4/libcli/smb2/connect.c
+++ b/source4/libcli/smb2/connect.c
@@ -101,6 +101,9 @@ static void continue_negprot(struct smb2_request *req)
c->status = smb2_negprot_recv(req, c, &state->negprot);
if (!composite_is_ok(c)) return;
+ transport->negotiate.system_time = state->negprot.out.system_time;
+ transport->negotiate.server_start_time = state->negprot.out.server_start_time;
+
state->session = smb2_session_init(transport, global_loadparm, state, true);
if (composite_nomem(state->session, c)) return;
diff --git a/source4/libcli/smb2/smb2.h b/source4/libcli/smb2/smb2.h
index 964dcf320c..b55da05e21 100644
--- a/source4/libcli/smb2/smb2.h
+++ b/source4/libcli/smb2/smb2.h
@@ -35,6 +35,8 @@ struct smb2_options {
*/
struct smb2_negotiate {
DATA_BLOB secblob;
+ NTTIME system_time;
+ NTTIME server_start_time;
};
/* this is the context for the smb2 transport layer */