summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Metzmacher <metze@samba.org>2018-03-06 23:45:30 +0100
committerStefan Metzmacher <metze@samba.org>2018-03-20 21:28:30 +0100
commit05fad286f1c1f4e9fdfb1797cdfc6bf23d6c4a25 (patch)
tree9cb4c71bc21e894a8c31f4a99442138d154a11a3
parentaee33186bb136a43222dcb85ac7dcc57760fa4b9 (diff)
downloadsamba-05fad286f1c1f4e9fdfb1797cdfc6bf23d6c4a25.tar.gz
s3:auth: remove static from finalize_local_nt_token()
BUG: https://bugzilla.samba.org/show_bug.cgi?id=13328 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Ralph Boehme <slow@samba.org> (cherry picked from commit 7f47f9e1f220d2dd547cf77bbc292357a2173870)
-rw-r--r--source3/auth/proto.h2
-rw-r--r--source3/auth/token_util.c6
2 files changed, 4 insertions, 4 deletions
diff --git a/source3/auth/proto.h b/source3/auth/proto.h
index ca851c21d4b..9fcd2727c5c 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;