diff options
author | Volker Lendecke <vl@samba.org> | 2008-06-24 14:18:55 +0200 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2008-06-26 13:13:22 +0200 |
commit | d331624fdfe9fc72f1da7fd01c59a1a20cf1c7d7 (patch) | |
tree | 2c5abd6a0f47e68519987f92a4ac6a9fbfb818d0 /source3/auth | |
parent | a8a0dd4241d3717b9b7273ac44de08c24835eeef (diff) | |
download | samba-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')
-rw-r--r-- | source3/auth/auth_util.c | 16 |
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) |