s3-build: only include asn1 headers where actually needed.
authorGünther Deschner <gd@samba.org>
Thu, 24 Feb 2011 11:27:29 +0000 (12:27 +0100)
committerGünther Deschner <gd@samba.org>
Wed, 16 Mar 2011 22:46:18 +0000 (23:46 +0100)
Guenther

source3/include/includes.h
source3/include/proto.h
source3/lib/tldap.c
source3/lib/tldap_util.c
source3/libads/krb5_setpw.c
source3/libsmb/clikrb5.c
source3/libsmb/clispnego.c
source3/smbd/seal.c
source3/smbd/sesssetup.c
source3/smbd/smb2_sesssetup.c
source3/utils/ntlm_auth.c

index c508266fc471dc424eefd5bc6baf0d0fa711f3b5..cda366f7c137c797d1de53f41c25e68f07f51026 100644 (file)
@@ -540,7 +540,6 @@ extern void *cmdline_lp_ctx;
 
 #include "../lib/util/data_blob.h"
 #include "../lib/util/time.h"
-#include "../lib/util/asn1.h"
 
 #include "libads/ads_status.h"
 #include "trans2.h"
index 7126103b9632fc5f140d9c21c2e9196556880a14..f944b2a58d149c6f3a6ddc789319188a6f35f979 100644 (file)
@@ -2298,6 +2298,10 @@ DATA_BLOB spnego_gen_negTokenInit(TALLOC_CTX *ctx,
                                  const char *OIDs[],
                                  DATA_BLOB *psecblob,
                                  const char *principal);
+
+#ifndef ASN1_MAX_OIDS
+#define ASN1_MAX_OIDS 20
+#endif
 bool spnego_parse_negTokenInit(TALLOC_CTX *ctx,
                               DATA_BLOB blob,
                               char *OIDs[ASN1_MAX_OIDS],
index 9523fdeab9ff4b96c37b7fe82ffdbd7f404439af..db5d562effeeff722e409174dfe276215fc2a219 100644 (file)
@@ -19,6 +19,7 @@
 
 #include "includes.h"
 #include "tldap.h"
+#include "../lib/util/asn1.h"
 
 static int tldap_simple_recv(struct tevent_req *req);
 
index 52bacfd8436624b49febf88e8272f487d832889f..7697a4326abb271697218710805a94ca47e53a20 100644 (file)
@@ -21,6 +21,7 @@
 #include "tldap.h"
 #include "tldap_util.h"
 #include "../libcli/security/security.h"
+#include "../lib/util/asn1.h"
 
 bool tldap_entry_values(struct tldap_message *msg, const char *attribute,
                        DATA_BLOB **values, int *num_values)
index c919a257a48014205f1ffc1ae36216f86c51f12f..d84dd5dff9317897b8c4df49bb047b37240e7265 100644 (file)
@@ -21,6 +21,7 @@
 #include "includes.h"
 #include "smb_krb5.h"
 #include "libads/kerberos_proto.h"
+#include "../lib/util/asn1.h"
 
 #ifdef HAVE_KRB5
 
index b4962a02032ee35d9fc6e52af873721d60c07823..016500418ed7a13350f55bcd4c47ea7d08466b6e 100644 (file)
@@ -23,6 +23,7 @@
 #include "includes.h"
 #include "smb_krb5.h"
 #include "../librpc/gen_ndr/krb5pac.h"
+#include "../lib/util/asn1.h"
 
 #ifndef KRB5_AUTHDATA_WIN2K_PAC
 #define KRB5_AUTHDATA_WIN2K_PAC 128
index 382a29ac657deeb1ab895f3bed8087dffa6e80f4..4581ce40267eaf6a829356b8b10f4c93121558aa 100644 (file)
@@ -23,6 +23,7 @@
 #include "includes.h"
 #include "../libcli/auth/spnego.h"
 #include "smb_krb5.h"
+#include "../lib/util/asn1.h"
 
 /*
   generate a negTokenInit packet given a list of supported
index 7fe44a0853dcd0f1c82f9ff404b9c69961b23a29..78ec3b2e65c3c55f49e97d7a422fb777b85affe6 100644 (file)
@@ -23,6 +23,7 @@
 #include "../libcli/auth/ntlmssp.h"
 #include "ntlmssp_wrap.h"
 #include "smb_crypt.h"
+#include "../lib/util/asn1.h"
 
 /******************************************************************************
  Server side encryption.
index 3cb07bea740b49ce00b8fcd6564b958cab53040c..6c67f3ea40da27dcf84761e65c3fb2f4a7cc4c61 100644 (file)
@@ -30,6 +30,7 @@
 #include "librpc/gen_ndr/messaging.h"
 #include "../librpc/gen_ndr/krb5pac.h"
 #include "libads/kerberos_proto.h"
+#include "../lib/util/asn1.h"
 
 /* For split krb5 SPNEGO blobs. */
 struct pending_auth_data {
index d1ebe9b673a31780b43761877ec1a0e40b944479..3b33af8fe29c4cdcd76a09a606d9c8f608d08a87 100644 (file)
@@ -27,6 +27,7 @@
 #include "ntlmssp_wrap.h"
 #include "../librpc/gen_ndr/krb5pac.h"
 #include "libads/kerberos_proto.h"
+#include "../lib/util/asn1.h"
 
 static NTSTATUS smbd_smb2_session_setup(struct smbd_smb2_request *smb2req,
                                        uint64_t in_session_id,
index 43af0fd638c457333a6f65a695c88db942537590..a6c5be84699e37206eb8bd1e6cd763a1f454cfce 100644 (file)
@@ -35,6 +35,7 @@
 #include "libads/kerberos_proto.h"
 #include "nsswitch/winbind_client.h"
 #include "librpc/gen_ndr/krb5pac.h"
+#include "../lib/util/asn1.h"
 
 #ifndef PAM_WINBIND_CONFIG_FILE
 #define PAM_WINBIND_CONFIG_FILE "/etc/security/pam_winbind.conf"