From: Volker Lendecke Date: Sat, 18 Sep 2021 06:30:07 +0000 (+0200) Subject: lib: Give util_specialsids.c its own prototype header X-Git-Tag: ldb-2.5.0~628 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aea829250daee5b80686fc8f9369f8fdecb6e735;p=thirdparty%2Fsamba.git lib: Give util_specialsids.c its own prototype header Signed-off-by: Volker Lendecke Reviewed-by: Jeremy Allison --- diff --git a/source3/include/proto.h b/source3/include/proto.h index eb45179aebb..ba4e5f74f44 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -751,11 +751,6 @@ bool lookup_wellknown_sid(TALLOC_CTX *mem_ctx, const struct dom_sid *sid, bool lookup_wellknown_name(TALLOC_CTX *mem_ctx, const char *name, struct dom_sid *sid, const char **domain); -/* The following definitions come from lib/util_specialsids.c */ -bool sid_check_is_asserted_identity(const struct dom_sid *sid); -bool sid_check_is_in_asserted_identity(const struct dom_sid *sid); -const char *asserted_identity_domain_name(void); - /* The following definitions come from lib/filename_util.c */ NTSTATUS get_full_smb_filename(TALLOC_CTX *ctx, const struct smb_filename *smb_fname, diff --git a/source3/lib/util_sid.c b/source3/lib/util_sid.c index 602451068e2..75918b440a3 100644 --- a/source3/lib/util_sid.c +++ b/source3/lib/util_sid.c @@ -27,6 +27,7 @@ #include "../librpc/gen_ndr/netlogon.h" #include "../libcli/security/security.h" #include "lib/util/string_wrappers.h" +#include "source3/lib/util_specialsids.h" /***************************************************************** diff --git a/source3/lib/util_specialsids.c b/source3/lib/util_specialsids.c index 4c402d6dade..9477ce27b84 100644 --- a/source3/lib/util_specialsids.c +++ b/source3/lib/util_specialsids.c @@ -18,6 +18,7 @@ #include "includes.h" #include "../libcli/security/security.h" +#include "util_specialsids.h" bool sid_check_is_asserted_identity(const struct dom_sid *sid) { diff --git a/source3/lib/util_specialsids.h b/source3/lib/util_specialsids.h new file mode 100644 index 00000000000..c65073714c3 --- /dev/null +++ b/source3/lib/util_specialsids.h @@ -0,0 +1,29 @@ +/* + * Unix SMB/CIFS implementation. + * Copyright (C) Guenther Deschner 2016 + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see . + */ + +#ifndef __LIB_UTIL_SPECIALSIDS_H__ +#define __LIB_UTIL_SPECIALSIDS_H__ + +#include "replace.h" + +struct dom_sid; +bool sid_check_is_asserted_identity(const struct dom_sid *sid); +bool sid_check_is_in_asserted_identity(const struct dom_sid *sid); +const char *asserted_identity_domain_name(void); + +#endif