From 284349482f5293a9a23d0f72d7c2aab46b55843b Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Mon, 1 Nov 2004 22:48:25 +0000 Subject: r3443: the next stage in the include files re-organisation. I have created the include/system/ directory, which will contain the wrappers for the system includes for logical subsystems. So far I have created include/system/kerberos.h and include/system/network.h, which contain all the system includes for kerberos code and networking code. These are the included in subsystems that need kerberos or networking respectively. Note that this method avoids the mess of #ifdef HAVE_XXX_H in every C file, instead each C module includes the include/system/XXX.h file for the logical system support it needs, and the details are kept isolated in include/system/ This patch also creates a "struct ipv4_addr" which replaces "struct in_addr" in our code. That avoids every C file needing to import all the system networking headers. (This used to be commit 2e25c71853f8996f73755277e448e7d670810349) --- source4/libcli/auth/clikrb5.c | 2 ++ source4/libcli/auth/gensec_krb5.c | 2 ++ source4/libcli/auth/kerberos.c | 1 + source4/libcli/auth/kerberos_verify.c | 2 ++ 4 files changed, 7 insertions(+) (limited to 'source4/libcli/auth') diff --git a/source4/libcli/auth/clikrb5.c b/source4/libcli/auth/clikrb5.c index c3ea33aaec..6f17bddfa0 100644 --- a/source4/libcli/auth/clikrb5.c +++ b/source4/libcli/auth/clikrb5.c @@ -20,6 +20,8 @@ */ #include "includes.h" +#include "system/network.h" +#include "system/kerberos.h" #ifdef HAVE_KRB5 diff --git a/source4/libcli/auth/gensec_krb5.c b/source4/libcli/auth/gensec_krb5.c index 95cc6bacbe..f393ce09c1 100644 --- a/source4/libcli/auth/gensec_krb5.c +++ b/source4/libcli/auth/gensec_krb5.c @@ -24,6 +24,8 @@ */ #include "includes.h" +#include "system/kerberos.h" +#include "libcli/auth/kerberos.h" #include "librpc/gen_ndr/ndr_krb5pac.h" #undef DBGC_CLASS diff --git a/source4/libcli/auth/kerberos.c b/source4/libcli/auth/kerberos.c index b08c7f505c..06e89d4d33 100644 --- a/source4/libcli/auth/kerberos.c +++ b/source4/libcli/auth/kerberos.c @@ -21,6 +21,7 @@ */ #include "includes.h" +#include "system/kerberos.h" #ifdef HAVE_KRB5 diff --git a/source4/libcli/auth/kerberos_verify.c b/source4/libcli/auth/kerberos_verify.c index 8d050182f9..8e598e2a66 100644 --- a/source4/libcli/auth/kerberos_verify.c +++ b/source4/libcli/auth/kerberos_verify.c @@ -23,6 +23,8 @@ */ #include "includes.h" +#include "system/kerberos.h" +#include "libcli/auth/kerberos.h" #ifdef HAVE_KRB5 -- cgit