int.h

Go to the documentation of this file.
00001 /*
00002  *      Copyright (C) 2004, 2006 Free Software Foundation, Inc.
00003  *      Copyright (C) 2002 Fabio Fiorina
00004  *
00005  * This file is part of LIBTASN1.
00006  *
00007  * The LIBTASN1 library is free software; you can redistribute it
00008  * and/or modify it under the terms of the GNU Lesser General Public
00009  * License as published by the Free Software Foundation; either
00010  * version 2.1 of the License, or (at your option) any later version.
00011  *
00012  * This library is distributed in the hope that it will be useful, but
00013  * WITHOUT ANY WARRANTY; without even the implied warranty of
00014  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00015  * Lesser General Public License for more details.
00016  *
00017  * You should have received a copy of the GNU Lesser General Public
00018  * License along with this library; if not, write to the Free Software
00019  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00020  * 02110-1301, USA
00021  */
00022 
00023 #ifndef INT_H
00024 #define INT_H
00025 
00026 #include <libtasn1.h>
00027 #include <defines.h>
00028 
00029 /*
00030 #define LIBTASN1_DEBUG
00031 #define LIBTASN1_DEBUG_PARSER
00032 #define LIBTASN1_DEBUG_INTEGER
00033 */
00034 
00035 #include <mem.h>
00036 
00037 #define MAX_LOG_SIZE 1024       /* maximum number of characters of a log message */
00038 
00039 /* Define used for visiting trees. */
00040 #define UP     1
00041 #define RIGHT  2
00042 #define DOWN   3
00043 
00044 /****************************************/
00045 /* Returns the first 8 bits.            */
00046 /* Used with the field type of node_asn */
00047 /****************************************/
00048 #define type_field(x)     (x&0xFF)
00049 
00050 /* List of constants for field type of typedef node_asn  */
00051 #define TYPE_CONSTANT       1
00052 #define TYPE_IDENTIFIER     2
00053 #define TYPE_INTEGER        3
00054 #define TYPE_BOOLEAN        4
00055 #define TYPE_SEQUENCE       5
00056 #define TYPE_BIT_STRING     6
00057 #define TYPE_OCTET_STRING   7
00058 #define TYPE_TAG            8
00059 #define TYPE_DEFAULT        9
00060 #define TYPE_SIZE          10
00061 #define TYPE_SEQUENCE_OF   11
00062 #define TYPE_OBJECT_ID     12
00063 #define TYPE_ANY           13
00064 #define TYPE_SET           14
00065 #define TYPE_SET_OF        15
00066 #define TYPE_DEFINITIONS   16
00067 #define TYPE_TIME          17
00068 #define TYPE_CHOICE        18
00069 #define TYPE_IMPORTS       19
00070 #define TYPE_NULL          20
00071 #define TYPE_ENUMERATED    21
00072 #define TYPE_GENERALSTRING 27
00073 
00074 
00075 /***********************************************************************/
00076 /* List of constants to better specify the type of typedef node_asn.   */
00077 /***********************************************************************/
00078 /*  Used with TYPE_TAG  */
00079 #define CONST_UNIVERSAL   (1<<8)
00080 #define CONST_PRIVATE     (1<<9)
00081 #define CONST_APPLICATION (1<<10)
00082 #define CONST_EXPLICIT    (1<<11)
00083 #define CONST_IMPLICIT    (1<<12)
00084 
00085 #define CONST_TAG         (1<<13)       /*  Used in ASN.1 assignement  */
00086 #define CONST_OPTION      (1<<14)
00087 #define CONST_DEFAULT     (1<<15)
00088 #define CONST_TRUE        (1<<16)
00089 #define CONST_FALSE       (1<<17)
00090 
00091 #define CONST_LIST        (1<<18)       /*  Used with TYPE_INTEGER and TYPE_BIT_STRING  */
00092 #define CONST_MIN_MAX     (1<<19)
00093 
00094 #define CONST_1_PARAM     (1<<20)
00095 
00096 #define CONST_SIZE        (1<<21)
00097 
00098 #define CONST_DEFINED_BY  (1<<22)
00099 
00100 #define CONST_GENERALIZED (1<<23)
00101 #define CONST_UTC         (1<<24)
00102 
00103 /* #define CONST_IMPORTS     (1<<25) */
00104 
00105 #define CONST_NOT_USED    (1<<26)
00106 #define CONST_SET         (1<<27)
00107 #define CONST_ASSIGN      (1<<28)
00108 
00109 #define CONST_DOWN        (1<<29)
00110 #define CONST_RIGHT       (1<<30)
00111 
00112 #endif /* INT_H */

Generated on Fri Feb 27 18:18:39 2009 for GNU libmicrohttpd by  doxygen 1.5.8