summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-02-24 12:27:29 +0100
committerGünther Deschner <gd@samba.org>2011-03-16 23:46:18 +0100
commit3aa9d3005ac2e48cf789e147a098e8feecdd41ef (patch)
tree3f3e828ada8b355644e1972678047fe9d735fa0b /source3/include
parent2a608ba856a4f28c13f295ac554e46168f3f045c (diff)
downloadsamba-3aa9d3005ac2e48cf789e147a098e8feecdd41ef.tar.gz
samba-3aa9d3005ac2e48cf789e147a098e8feecdd41ef.tar.bz2
samba-3aa9d3005ac2e48cf789e147a098e8feecdd41ef.zip
s3-build: only include asn1 headers where actually needed.
Guenther
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/includes.h1
-rw-r--r--source3/include/proto.h4
2 files changed, 4 insertions, 1 deletions
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],