From ed211d7c9b6e186106870e24a9e60f9b5b952a03 Mon Sep 17 00:00:00 2001 From: Nikos Mavrogiannopoulos Date: Fri, 18 Sep 2015 15:49:07 +0200 Subject: doc enhanced the asn1Coding example --- doc/libtasn1.texi | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/doc/libtasn1.texi b/doc/libtasn1.texi index d634fee..7fabd21 100644 --- a/doc/libtasn1.texi +++ b/doc/libtasn1.texi @@ -363,15 +363,24 @@ Options: For example, consider an ASN.1 definitions file as follows: @verbatim -PKIX1 { } +MYPKIX1 { } DEFINITIONS IMPLICIT TAGS ::= BEGIN +OtherStruct := SEQUENCE { + x INTEGER, + y CHOICE { + y1 INTEGER, + y2 OCTET STRING }, +} + Dss-Sig-Value ::= SEQUENCE { r INTEGER, - s INTEGER + s INTEGER, + other OtherStruct + z INTEGER OPTIONAL, } END @@ -380,10 +389,14 @@ END And a assignments file as follows: @verbatim -dp PKIX1.Dss-Sig-Value +dp MYPKIX1.Dss-Sig-Value r 42 s 47 +other.x 66 +other.y y1 +other.y.y1 15 +z (NULL) @end verbatim Running the command below will generate a @file{assign.out} file, -- cgit v1.2.1