From: Stefan Metzmacher Date: Tue, 6 Mar 2018 22:45:30 +0000 (+0100) Subject: s3:auth: remove static from finalize_local_nt_token() X-Git-Tag: talloc-2.1.12~157 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=7f47f9e1f220d2dd547cf77bbc292357a2173870;p=thirdparty%2Fsamba.git s3:auth: remove static from finalize_local_nt_token() BUG: https://bugzilla.samba.org/show_bug.cgi?id=13328 Signed-off-by: Stefan Metzmacher Reviewed-by: Ralph Boehme --- diff --git a/source3/auth/proto.h b/source3/auth/proto.h index bdefeaf8ec5..e47a34733fb 100644 --- a/source3/auth/proto.h +++ b/source3/auth/proto.h @@ -357,6 +357,8 @@ struct security_token *create_local_nt_token(TALLOC_CTX *mem_ctx, bool is_guest, int num_groupsids, const struct dom_sid *groupsids); +NTSTATUS finalize_local_nt_token(struct security_token *result, + uint32_t session_info_flags); NTSTATUS get_user_sid_info3_and_extra(const struct netr_SamInfo3 *info3, const struct extra_auth_info *extra, struct dom_sid *sid); diff --git a/source3/auth/token_util.c b/source3/auth/token_util.c index acb916ab55c..f015f8d2cd5 100644 --- a/source3/auth/token_util.c +++ b/source3/auth/token_util.c @@ -281,8 +281,6 @@ static NTSTATUS add_builtin_guests(struct security_token *token, static NTSTATUS add_local_groups(struct security_token *result, bool is_guest); -static NTSTATUS finalize_local_nt_token(struct security_token *result, - uint32_t session_info_flags); NTSTATUS get_user_sid_info3_and_extra(const struct netr_SamInfo3 *info3, const struct extra_auth_info *extra, @@ -616,8 +614,8 @@ static NTSTATUS add_local_groups(struct security_token *result, return NT_STATUS_OK; } -static NTSTATUS finalize_local_nt_token(struct security_token *result, - uint32_t session_info_flags) +NTSTATUS finalize_local_nt_token(struct security_token *result, + uint32_t session_info_flags) { struct dom_sid _dom_sid = { 0, }; struct dom_sid *domain_sid = NULL;