From 8c0660f084e933971d1fc4eb8045af271b8c84b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Love=20H=C3=B6rnquist=20=C3=85strand?= Date: Thu, 21 Jul 2005 19:09:41 +0000 Subject: [PATCH] Expand on what is wrong with the IMPLICIT tagging git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@15694 ec53bebd-3082-4978-b11e-865c3cabbd6b --- lib/asn1/canthandle.asn1 | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/lib/asn1/canthandle.asn1 b/lib/asn1/canthandle.asn1 index abb83de2f..0a2ff4894 100644 --- a/lib/asn1/canthandle.asn1 +++ b/lib/asn1/canthandle.asn1 @@ -2,17 +2,21 @@ CANTHANDLE DEFINITIONS ::= BEGIN --- Don't code the tag [0] as a constructed tag for foo.kaka1, --- it should be PRIM (and no type field) --- Workaround is to use heim_any and decode type +-- Code the tag [1] but not the [ CONTEXT CONS UT_Sequence ] for Kaka2 +-- Workaround is to use heim_any, add the wrapping tag and decode type +-- Code the tag [2] but it should be primitive since KAKA3 is +-- Workaround: use the INTEGER type directly -Kaka ::= SEQUENCE { - kaka3 [0] INTEGER +Kaka2 ::= SEQUENCE { + kaka2-1 [0] INTEGER } +Kaka3 ::= INTEGER + Foo ::= SEQUENCE { kaka1 [0] IMPLICIT INTEGER OPTIONAL, - kaka2 [1] IMPLICIT Kaka OPTIONAL + kaka2 [1] IMPLICIT Kaka2 OPTIONAL, + kaka3 [2] IMPLICIT Kaka3 OPTIONAL } -- Don't code kaka if its 1