diff options
author | Stef Walter <stefw@gnome.org> | 2013-03-15 11:50:24 +0100 |
---|---|---|
committer | Stef Walter <stefw@gnome.org> | 2013-03-15 18:18:47 +0100 |
commit | 7fd74a78fcad81227be3650239669bca5851a1db (patch) | |
tree | 64f60c20357a7fd34f9aee30ac12dcfa2ebb1109 /common | |
parent | 48004b92d4c65080ac71f6a48297abd4d83dfdcb (diff) |
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
Diffstat (limited to 'common')
-rw-r--r-- | common/Makefile.am | 2 | ||||
-rw-r--r-- | common/basic.asn | 12 | ||||
-rw-r--r-- | common/basic.asn.h | 13 |
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 } +}; |