2 Unix SMB/CIFS implementation.
4 Copyright (C) Andrew Tridgell 2001
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
11 This program is distributed in the hope that it will be useful,
12 but WITHOUT ANY WARRANTY; without even the implied warranty of
13 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 GNU General Public License for more details.
16 You should have received a copy of the GNU General Public License
17 along with this program. If not, see <http://www.gnu.org/licenses/>.
25 size_t taglen; /* for parsing */
33 struct nesting *nesting;
37 typedef struct asn1_data ASN1_DATA;
39 #define ASN1_APPLICATION(x) ((x)+0x60)
40 #define ASN1_APPLICATION_SIMPLE(x) ((x)+0x40)
41 #define ASN1_SEQUENCE(x) ((x)+0x30)
42 #define ASN1_CONTEXT(x) ((x)+0xa0)
43 #define ASN1_CONTEXT_SIMPLE(x) ((x)+0x80)
44 #define ASN1_GENERAL_STRING 0x1b
45 #define ASN1_OCTET_STRING 0x4
47 #define ASN1_BOOLEAN 0x1
48 #define ASN1_INTEGER 0x2
49 #define ASN1_BITFIELD 0x3
50 #define ASN1_ENUMERATED 0xa
53 #define ASN1_MAX_OIDS 20
55 #include "../lib/util/asn1_proto.h"