From 3aa9d3005ac2e48cf789e147a098e8feecdd41ef Mon Sep 17 00:00:00 2001 From: Günther Deschner Date: Thu, 24 Feb 2011 12:27:29 +0100 Subject: s3-build: only include asn1 headers where actually needed. Guenther --- source3/include/includes.h | 1 - source3/include/proto.h | 4 ++++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'source3/include') diff --git a/source3/include/includes.h b/source3/include/includes.h index c508266fc4..cda366f7c1 100644 --- a/source3/include/includes.h +++ b/source3/include/includes.h @@ -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" diff --git a/source3/include/proto.h b/source3/include/proto.h index 7126103b96..f944b2a58d 100644 --- a/source3/include/proto.h +++ b/source3/include/proto.h @@ -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], -- cgit