summaryrefslogtreecommitdiff
path: root/common
diff options
context:
space:
mode:
Diffstat (limited to 'common')
-rw-r--r--common/Makefile.am2
-rw-r--r--common/basic.asn12
-rw-r--r--common/basic.asn.h13
3 files changed, 27 insertions, 0 deletions
diff --git a/common/Makefile.am b/common/Makefile.am
index a132984..3a54089 100644
--- a/common/Makefile.am
+++ b/common/Makefile.am
@@ -43,6 +43,7 @@ noinst_LTLIBRARIES += \
libp11_data_la_SOURCES = \
asn1.c asn1.h \
+ basic.asn basic.asn.h \
base64.c base64.h \
checksum.c checksum.h \
oid.c oid.h \
@@ -59,5 +60,6 @@ libp11_data_la_CFLAGS = \
asn:
asn1Parser -o pkix.asn.h pkix.asn
asn1Parser -o openssl.asn.h openssl.asn
+ asn1Parser -o basic.asn.h basic.asn
endif # WITH_ASN1
diff --git a/common/basic.asn b/common/basic.asn
new file mode 100644
index 0000000..3c79a4b
--- /dev/null
+++ b/common/basic.asn
@@ -0,0 +1,12 @@
+
+BASIC { }
+
+DEFINITIONS EXPLICIT TAGS ::=
+
+BEGIN
+
+Any ::= ANY
+
+ObjectIdentifier ::= OBJECT IDENTIFIER
+
+END \ No newline at end of file
diff --git a/common/basic.asn.h b/common/basic.asn.h
new file mode 100644
index 0000000..b63447b
--- /dev/null
+++ b/common/basic.asn.h
@@ -0,0 +1,13 @@
+#if HAVE_CONFIG_H
+# include "config.h"
+#endif
+
+#include <libtasn1.h>
+
+const ASN1_ARRAY_TYPE basic_asn1_tab[] = {
+ { "BASIC", 536872976, NULL },
+ { NULL, 1073741836, NULL },
+ { "Any", 1073741837, NULL },
+ { "ObjectIdentifier", 12, NULL },
+ { NULL, 0, NULL }
+};