From 7fd74a78fcad81227be3650239669bca5851a1db Mon Sep 17 00:00:00 2001 From: Stef Walter Date: Fri, 15 Mar 2013 11:50:24 +0100 Subject: trust: Support a p11-kit specific serialization format This is documented in doc/internals/ subdirectory Add tests for the format as well. https://bugs.freedesktop.org/show_bug.cgi?id=62156 --- common/Makefile.am | 2 ++ common/basic.asn | 12 ++++++++++++ common/basic.asn.h | 13 +++++++++++++ 3 files changed, 27 insertions(+) create mode 100644 common/basic.asn create mode 100644 common/basic.asn.h (limited to 'common') 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 + +const ASN1_ARRAY_TYPE basic_asn1_tab[] = { + { "BASIC", 536872976, NULL }, + { NULL, 1073741836, NULL }, + { "Any", 1073741837, NULL }, + { "ObjectIdentifier", 12, NULL }, + { NULL, 0, NULL } +}; -- cgit v1.1