asn1: Make 'struct asn1_data' private
authorVolker Lendecke <vl@samba.org>
Sun, 3 Jan 2016 20:26:50 +0000 (21:26 +0100)
committerJeremy Allison <jra@samba.org>
Tue, 5 Jan 2016 23:54:18 +0000 (00:54 +0100)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
lib/util/asn1.c
lib/util/asn1.h

index 755b5ceadd2acdec9e11decf00b6f9407dcdab85..fed65900fcfc099840a03669fc103a70b5521ce6 100644 (file)
@@ -26,6 +26,15 @@ struct nesting {
        struct nesting *next;
 };
 
+
+struct asn1_data {
+       uint8_t *data;
+       size_t length;
+       off_t ofs;
+       struct nesting *nesting;
+       bool has_error;
+};
+
 /* allocate an asn1 structure */
 struct asn1_data *asn1_init(TALLOC_CTX *mem_ctx)
 {
index 92ad8aefd7ea789cd01346358ff5d1c7429784e9..4eb8506d092b191eecb2b9f4e184e5f131cdee47 100644 (file)
 #define _ASN_1_H
 
 struct nesting;
-
-struct asn1_data {
-       uint8_t *data;
-       size_t length;
-       off_t ofs;
-       struct nesting *nesting;
-       bool has_error;
-};
-
+struct asn1_data;
 typedef struct asn1_data ASN1_DATA;
 
 #define ASN1_APPLICATION(x) ((x)+0x60)