summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorSimon Josefsson <simon@josefsson.org>2006-02-23 14:37:21 +0000
committerSimon Josefsson <simon@josefsson.org>2006-02-23 14:37:21 +0000
commite848d50225e222e158fd3a15b316fdad30a6b9f7 (patch)
treeba6bf85b0f037bd78881dc23cb6f82f473745e6b /lib
parent98a584b96d845c98ff1cf1ba149ce9e238d1bf4e (diff)
downloadlibtasn1-e848d50225e222e158fd3a15b316fdad30a6b9f7.tar.gz
libtasn1-e848d50225e222e158fd3a15b316fdad30a6b9f7.tar.bz2
libtasn1-e848d50225e222e158fd3a15b316fdad30a6b9f7.zip
Move from der.h.
Diffstat (limited to 'lib')
-rw-r--r--lib/int.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/lib/int.h b/lib/int.h
index 09680de..6357f84 100644
--- a/lib/int.h
+++ b/lib/int.h
@@ -39,11 +39,18 @@
#define MAX_NAME_SIZE 128 /* maximum number of characters of a name inside an ASN1 file definiton */
#define MAX_ERROR_DESCRIPTION_SIZE 128 /* maximum number of characters of a description message */
-/* define used for visiting trees */
+/* Define used for visiting trees. */
#define UP 1
#define RIGHT 2
#define DOWN 3
+/* DER classes. */
+#define UNIVERSAL 0x00
+#define APPLICATION 0x40
+#define CONTEXT_SPECIFIC 0x80
+#define PRIVATE 0xC0
+#define STRUCTURED 0x20
+
/****************************************/
/* Returns the first 8 bits. */
/* Used with the field type of node_asn */