r11949: make sure we ask gensec to give us a session key
authorAndrew Tridgell <tridge@samba.org>
Mon, 28 Nov 2005 22:53:42 +0000 (22:53 +0000)
committerGerald (Jerry) Carter <jerry@samba.org>
Wed, 10 Oct 2007 18:46:49 +0000 (13:46 -0500)
andrew, this answers your question on irc about whether the same
session key mechanisms are used in smb2. They are - the RPC-LSA secret
tests pass fine over ncacn_np on SMB2, which means the session key
must be working

source/libcli/smb2/session.c

index c62b24797d9fb8cd72bdeeb95dc52b1a4022f035..12285d55369ccb8146f77f77a43793a380e732e0 100644 (file)
@@ -54,6 +54,8 @@ struct smb2_session *smb2_session_init(struct smb2_transport *transport,
                return NULL;
        }
 
+       gensec_want_feature(session->gensec, GENSEC_FEATURE_SESSION_KEY);
+
        return session;
 }