From: Volker Lendecke Date: Thu, 19 Jun 2025 15:04:35 +0000 (+0200) Subject: auth: Remove unused session_info_set_session_key() X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=8a9011350cf09a599efae73376e8d962decb0c8d;p=thirdparty%2Fsamba.git auth: Remove unused session_info_set_session_key() Signed-off-by: Volker Lendecke Reviewed-by: Anoop C S --- diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index abc5e959aab..c01bab5ed34 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -1748,22 +1748,6 @@ static struct auth_serversupplied_info *copy_session_info_serverinfo_guest(TALLO 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 session_info_set_session_key(struct auth_session_info *info, - DATA_BLOB session_key) -{ - TALLOC_FREE(info->session_key.data); - - info->session_key = data_blob_talloc( - info, session_key.data, session_key.length); - - return (info->session_key.data != NULL); -} - static struct auth_session_info *guest_info = NULL; static struct auth_session_info *anonymous_info = NULL; diff --git a/source3/auth/proto.h b/source3/auth/proto.h index d40422d5187..4283656ef59 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -273,8 +273,6 @@ NTSTATUS make_session_info_from_username(TALLOC_CTX *mem_ctx, bool init_guest_session_info(TALLOC_CTX *mem_ctx); bool reinit_guest_session_info(TALLOC_CTX *mem_ctx); NTSTATUS init_system_session_info(TALLOC_CTX *mem_ctx); -bool session_info_set_session_key(struct auth_session_info *info, - DATA_BLOB session_key); NTSTATUS make_server_info_guest(TALLOC_CTX *mem_ctx, struct auth_serversupplied_info **server_info); NTSTATUS make_session_info_guest(TALLOC_CTX *mem_ctx,