]> git.sur5r.net Git - openldap/blob - servers/slapd/asn.h
Referrals should not (except in special cases) be
[openldap] / servers / slapd / asn.h
1 /* asn.h -- Component Filter Match Routines */
2 /* $OpenLDAP$ */
3 /* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4  *
5  * Copyright 2003-2004 The OpenLDAP Foundation.
6  * Portions Copyright 2004 by IBM Corporation.
7  * All rights reserved.
8  *
9  * Redistribution and use in source and binary forms, with or without
10  * modification, are permitted only as authorized by the OpenLDAP
11  * Public License.
12  *
13  * A copy of this license is available in the file LICENSE in the
14  * top-level directory of the distribution or, alternatively, at
15  * <http://www.OpenLDAP.org/license.html>.
16  */
17
18 #ifdef LDAP_COMP_MATCH
19 #ifndef _H_ASN
20 #define _H_ASN
21
22 #define NUM_ENCODING_TYPE 2
23
24 typedef enum { ASN_BASIC, ASN_COMPOSITE } AsnType;
25
26 typedef enum AsnTypeId {
27         BASICTYPE_BOOLEAN,      /* 1 */
28         BASICTYPE_INTEGER, 
29         BASICTYPE_BITSTRING,
30         BASICTYPE_OCTETSTRING,
31         BASICTYPE_NULL,
32         BASICTYPE_OID,
33         BASICTYPE_REAL,
34         BASICTYPE_ENUMERATED,
35         BASICTYPE_NUMERIC_STR,
36         BASICTYPE_PRINTABLE_STR,
37         BASICTYPE_UNIVERSAL_STR,
38         BASICTYPE_IA5_STR,
39         BASICTYPE_BMP_STR,
40         BASICTYPE_UTF8_STR,
41         BASICTYPE_UTCTIME,
42         BASICTYPE_GENERALIZEDTIME,
43         BASICTYPE_GRAPHIC_STR,
44         BASICTYPE_VISIBLE_STR,
45         BASICTYPE_GENERAL_STR,
46         BASICTYPE_OBJECTDESCRIPTOR,
47         BASICTYPE_VIDEOTEX_STR,
48         BASICTYPE_T61_STR,
49         BASICTYPE_OCTETCONTAINING,
50         BASICTYPE_BITCONTAINING,
51         BASICTYPE_RELATIVE_OID, /* 25 */
52         /* Embedded Composite Types*/
53         COMPOSITE_ASN1_TYPE,
54         /* A New ASN.1 types including type reference */
55         RDNSequence,
56         RelativeDistinguishedName,
57         TelephoneNumber,
58         FacsimileTelephoneNumber_telephoneNumber,
59         DirectoryString,
60         /* Newly Defined ASN.1 Type, Manually registered */
61         ASN_T1,
62         /* ASN.1 Type End */
63         ASNTYPE_END
64 } AsnTypeId;
65 #endif
66 #endif