summaryrefslogtreecommitdiff
path: root/source3/auth/auth_util.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2008-06-24 14:18:55 +0200
committerVolker Lendecke <vl@samba.org>2008-06-26 13:13:22 +0200
commitd331624fdfe9fc72f1da7fd01c59a1a20cf1c7d7 (patch)
tree2c5abd6a0f47e68519987f92a4ac6a9fbfb818d0 /source3/auth/auth_util.c
parenta8a0dd4241d3717b9b7273ac44de08c24835eeef (diff)
downloadsamba-d331624fdfe9fc72f1da7fd01c59a1a20cf1c7d7.tar.gz
samba-d331624fdfe9fc72f1da7fd01c59a1a20cf1c7d7.tar.bz2
samba-d331624fdfe9fc72f1da7fd01c59a1a20cf1c7d7.zip
Add server_info to pipes_struct
(This used to be commit d621867bb8767e1c4236d28dd9294a61db6cbb10)
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r--source3/auth/auth_util.c16
1 files changed, 16 insertions, 0 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c
index b1558bceac..998a81b61a 100644
--- a/source3/auth/auth_util.c
+++ b/source3/auth/auth_util.c
@@ -1334,6 +1334,22 @@ struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx,
return dst;
}
+/*
+ * Set a new session key. Used in the rpc server where we have to override the
+ * SMB level session key with SystemLibraryDTC
+ */
+
+bool server_info_set_session_key(struct auth_serversupplied_info *info,
+ DATA_BLOB session_key)
+{
+ TALLOC_FREE(info->user_session_key.data);
+
+ info->user_session_key = data_blob_talloc(
+ info, session_key.data, session_key.length);
+
+ return (info->user_session_key.data != NULL);
+}
+
static auth_serversupplied_info *guest_info = NULL;
bool init_guest_info(void)