remember the server time fields on negotiate. Needed for gentest
authorAndrew Tridgell <tridge@samba.org>
Tue, 20 May 2008 01:57:43 +0000 (11:57 +1000)
committerAndrew Tridgell <tridge@samba.org>
Tue, 20 May 2008 01:57:43 +0000 (11:57 +1000)
(This used to be commit 7989ca861dcc700b52be3a47ea5ae8b03fbb9330)

source4/libcli/smb2/connect.c
source4/libcli/smb2/smb2.h

index 867af14c9297135ff6339963047e34185396f2f0..eabfa410adc6b9ed5567bd22fe4e07eaa07c91ef 100644 (file)
@@ -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;
 
index 964dcf320c4eaf76c6239f4feb6d49f4c12577cb..b55da05e21f30436b48201ee36c59f86eb246999 100644 (file)
@@ -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 */