s4:kdc Simplify header files
authorSimo Sorce <idra@samba.org>
Thu, 21 Jan 2010 14:57:41 +0000 (09:57 -0500)
committerSimo Sorce <idra@samba.org>
Fri, 22 Jan 2010 16:16:24 +0000 (11:16 -0500)
source4/kdc/config.mk
source4/kdc/hdb-samba4.c
source4/kdc/kdc.h
source4/kdc/pac-glue.h [deleted file]

index 3ae5fe592136b80c9ea995c2fbc2f7e8441ecd4c..16599414df2bd2fc3b5189fb53adeb36c017a41b 100644 (file)
@@ -36,4 +36,3 @@ PRIVATE_DEPENDENCIES = \
 #######################
 
 PAC_GLUE_OBJ_FILES = $(addprefix $(kdcsrcdir)/, pac-glue.o)
-$(eval $(call proto_header_template,$(kdcsrcdir)/pac-glue_proto.h,$(HDB_SAMBA4_OBJ_FILES:.o=.c)))
index f7a72b41bcf75f4f48ada4dcf826fbe6a305d214..eb7edeb5c83a1822350f14a78368d334e80d4694 100644 (file)
@@ -1451,9 +1451,10 @@ static krb5_error_code hdb_samba4_destroy(krb5_context context, HDB *db)
  *
  * This is currently a very nasty hack - allowing only delegation to itself.
  */
-krb5_error_code hdb_samba4_check_constrained_delegation(krb5_context context, HDB *db,
-                                                       hdb_entry_ex *entry,
-                                                       krb5_const_principal target_principal)
+static krb5_error_code
+hdb_samba4_check_constrained_delegation(krb5_context context, HDB *db,
+                                       hdb_entry_ex *entry,
+                                       krb5_const_principal target_principal)
 {
        struct ldb_context *ldb_ctx = (struct ldb_context *)db->hdb_db;
        struct loadparm_context *lp_ctx = talloc_get_type(ldb_get_opaque(ldb_ctx, "loadparm"),
@@ -1525,9 +1526,10 @@ krb5_error_code hdb_samba4_check_constrained_delegation(krb5_context context, HD
  * database.  Allow a mismatch where they both refer to the same
  * SID */
 
-krb5_error_code hdb_samba4_check_pkinit_ms_upn_match(krb5_context context, HDB *db,
-                                                    hdb_entry_ex *entry,
-                                                    krb5_const_principal certificate_principal)
+static krb5_error_code
+hdb_samba4_check_pkinit_ms_upn_match(krb5_context context, HDB *db,
+                                    hdb_entry_ex *entry,
+                                    krb5_const_principal certificate_principal)
 {
        struct ldb_context *ldb_ctx = (struct ldb_context *)db->hdb_db;
        struct loadparm_context *lp_ctx = talloc_get_type(ldb_get_opaque(ldb_ctx, "loadparm"),
index b9cf62153793add4aa25b51fbb6547e949c7a97a..becef93ad77bee3805c232d05a2627a5efe5e025 100644 (file)
 #include <hdb.h>
 #include <kdc.h>
 #include <krb5/windc_plugin.h>
-#include "kdc/pac-glue.h"
 #include "kdc/hdb-samba4.h"
 
 struct kdc_server;
 struct tsocket_address;
 
+extern struct krb5plugin_windc_ftable windc_plugin_table;
 
 bool kpasswdd_process(struct kdc_server *kdc,
                      TALLOC_CTX *mem_ctx,
@@ -50,4 +50,8 @@ struct kdc_server {
        struct hdb_samba4_context *hdb_samba4_context;
 };
 
-
+/* from hdb-samba4.c */
+NTSTATUS hdb_samba4_create_kdc(TALLOC_CTX *mem_ctx,
+                             struct tevent_context *ev_ctx,
+                             struct loadparm_context *lp_ctx,
+                             krb5_context context, struct HDB **db);
diff --git a/source4/kdc/pac-glue.h b/source4/kdc/pac-glue.h
deleted file mode 100644 (file)
index f838ec3..0000000
+++ /dev/null
@@ -1,30 +0,0 @@
-/*
-   Unix SMB/CIFS implementation.
-
-   KDC Server startup
-
-   Copyright (C) Andrew Bartlett <abartlet@samba.org> 2005-2009
-
-   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 __KDC_PAC_GLUE_H__
-#define __KDC_PAC_GLUE_H__
-
-#include "kdc/pac-glue_proto.h"
-
-extern struct krb5plugin_windc_ftable windc_plugin_table;
-
-#endif /* __KDC_PAC_GLUE_H__ */
-