summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2008-05-17 00:02:28 +0200
committerStefan Metzmacher <metze@samba.org>2008-05-17 01:54:18 +0200
commit626b2da5a9109cfa50b8bf471d5b0c59351cfc17 (patch)
tree5d02e1062306d8aa0c114f843ed547b9abbadda2 /source4
parent097b5ae7633d2f89abe9f89202a8af1438b590cd (diff)
downloadsamba-626b2da5a9109cfa50b8bf471d5b0c59351cfc17.tar.gz
samba-626b2da5a9109cfa50b8bf471d5b0c59351cfc17.tar.bz2
samba-626b2da5a9109cfa50b8bf471d5b0c59351cfc17.zip
smbd: add session_info to struct stream_connection
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)
Diffstat (limited to 'source4')
-rw-r--r--source4/smbd/service_stream.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source4/smbd/service_stream.h b/source4/smbd/service_stream.h
index 04d23a56f2..d57a54cdc9 100644
--- a/source4/smbd/service_stream.h
+++ b/source4/smbd/service_stream.h
@@ -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;
};