r100: remember the user session key during session setup so it can be used in various...
[samba.git] / source4 / libcli / raw / clitransport.c
index 2d614cc3bdfded5d9f03f9f5ec28651997f6ecdc..62152bbe4d96d6620709761ac465752959c3c140 100644 (file)
@@ -222,3 +222,12 @@ BOOL cli_transport_select(struct cli_transport *transport)
 
        return True;
 }
+
+/*
+  store the user session key for a transport
+*/
+void cli_transport_set_session_key(struct cli_transport *transport,
+                                  const uint8 session_key[16])
+{
+       memcpy(transport->negotiate.user_session_key, session_key, 16);
+}