]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
lib: Give util_specialsids.c its own prototype header
authorVolker Lendecke <vl@samba.org>
Sat, 18 Sep 2021 06:30:07 +0000 (08:30 +0200)
committerJeremy Allison <jra@samba.org>
Tue, 21 Sep 2021 00:13:32 +0000 (00:13 +0000)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
source3/include/proto.h
source3/lib/util_sid.c
source3/lib/util_specialsids.c
source3/lib/util_specialsids.h [new file with mode: 0644]

index eb45179aebbb3638e2831ae0679e95c6eeba651e..ba4e5f74f44852b233d0d9aacbbe5743832b8d23 100644 (file)
@@ -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,
index 602451068e20e4186540fd2eef41e34691757d75..75918b440a3d440ef77a92e57c367d1e658ac3af 100644 (file)
@@ -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"
 
 
 /*****************************************************************
index 4c402d6dadec446effacb94c00e7ee3c751e0841..9477ce27b84293fe305b7f4f8ce66c8c15470aa4 100644 (file)
@@ -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 (file)
index 0000000..c650737
--- /dev/null
@@ -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 <http://www.gnu.org/licenses/>.
+ */
+
+#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