From 3d9e36d3a13afabf4b540b110239dd93d27a9530 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 21 Jul 2005 19:14:53 +0000 Subject: [PATCH] tests for IMPLICIT git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15695 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/Makefile.am | 6 ++++-- lib/asn1/test.asn1 | 6 ++++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/lib/asn1/Makefile.am b/lib/asn1/Makefile.am index 1c1168e9f..6a9ea8612 100644 --- a/lib/asn1/Makefile.am +++ b/lib/asn1/Makefile.am @@ -309,8 +309,10 @@ gen_files_pkcs9 = \ gen_files_test = \ asn1_TESTChoice1.x \ asn1_TESTChoice2.x \ - asn1_TESTSeq.x \ - asn1_TESTLargeTag.x + asn1_TESTImplicit.x \ + asn1_TESTInteger.x \ + asn1_TESTLargeTag.x \ + asn1_TESTSeq.x noinst_PROGRAMS = asn1_compile asn1_print asn1_gen diff --git a/lib/asn1/test.asn1 b/lib/asn1/test.asn1 index 5a65e456b..459f59d0b 100644 --- a/lib/asn1/test.asn1 +++ b/lib/asn1/test.asn1 @@ -26,5 +26,11 @@ TESTChoice2 ::= CHOICE { ... } +TESTInteger ::= INTEGER (-2147483648..2147483647) + +TESTImplicit ::= SEQUENCE { + ti1[0] IMPLICIT TESTInteger, + ti2[1] IMPLICIT TESTLargeTag +} END