diff options
author | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-09-18 15:49:07 +0200 |
---|---|---|
committer | Nikos Mavrogiannopoulos <nmav@redhat.com> | 2015-09-18 15:49:27 +0200 |
commit | ed211d7c9b6e186106870e24a9e60f9b5b952a03 (patch) | |
tree | 965a4fab70759ce9b9fbb9238180e98272c28f2c /doc | |
parent | 5addb300c7388a50c53e801b623901ab03f47efa (diff) | |
download | libtasn1-ed211d7c9b6e186106870e24a9e60f9b5b952a03.tar.gz |
doc enhanced the asn1Coding example
Diffstat (limited to 'doc')
-rw-r--r-- | doc/libtasn1.texi | 19 |
1 files 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, |