smbd: add session_info to struct stream_connection
authorStefan Metzmacher <metze@samba.org>
Fri, 16 May 2008 22:02:28 +0000 (00:02 +0200)
committerStefan Metzmacher <metze@samba.org>
Fri, 16 May 2008 23:54:18 +0000 (01:54 +0200)
NULL represents an anoymous connection, as that's
cheaper than always calling auth_anonymous_session_info(),
That means if the caller wants to use the transport layer
session_info he should call auth_anonymous_session_info()
to create the session info.

metze
(This used to be commit 3777d0307b346bcf363ab5ad783e802682034a9a)

source4/smbd/service_stream.h

index 04d23a56f26897c87f50d765fcbf3ec94a74dc47..d57a54cdc9090cb136fd98b4dfe19b1ef8e7e064 100644 (file)
@@ -50,6 +50,12 @@ struct stream_connection {
        struct messaging_context *msg_ctx;
        struct loadparm_context *lp_ctx;
 
+       /*
+        * this transport layer session info, normally NULL
+        * which means the same as an anonymous session info
+        */
+       struct auth_session_info *session_info;
+
        bool processing;
        const char *terminate;
 };