aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/doc/src/asn1_ug.xml
diff options
context:
space:
mode:
authorBjörn Gustavsson <[email protected]>2014-03-25 06:58:48 +0100
committerBjörn Gustavsson <[email protected]>2014-03-28 10:06:45 +0100
commit70c48be27e74916dfbcee48343ede1882658832c (patch)
treef6b77b0e204507282d54abe4d544ffc918d0171c /lib/asn1/doc/src/asn1_ug.xml
parentc2b4eab25c907f453a394d382c04cd04e6c06b49 (diff)
downloadotp-70c48be27e74916dfbcee48343ede1882658832c.tar.gz
otp-70c48be27e74916dfbcee48343ede1882658832c.tar.bz2
otp-70c48be27e74916dfbcee48343ede1882658832c.zip
Document the asn1_OPENTYPE wrapper
Diffstat (limited to 'lib/asn1/doc/src/asn1_ug.xml')
-rw-r--r--lib/asn1/doc/src/asn1_ug.xml17
1 files changed, 17 insertions, 0 deletions
diff --git a/lib/asn1/doc/src/asn1_ug.xml b/lib/asn1/doc/src/asn1_ug.xml
index ee54fdffd7..cef7945226 100644
--- a/lib/asn1/doc/src/asn1_ug.xml
+++ b/lib/asn1/doc/src/asn1_ug.xml
@@ -1438,6 +1438,23 @@ StartMessage ::= SEQUENCE {
<c><![CDATA[&amp;Message]]></c> in the class. The <c>msgId</c> field is always
encoded as a PrintableString, since the field refers to a fixed type
in the class.</p>
+ <p>In practice, object sets are usually declared to be extensible so
+ so that more objects can be added to the set later. Extensibility is
+ indicated like this:</p>
+ <pre>
+GENERAL-PROCEDURES GENERAL-PROCEDURE ::= {
+ object1 | object2, ...} </pre>
+ <p>When decoding a type that uses an extensible set constraint,
+ there is always the possibility that the value in the UNIQUE
+ field is unknown (i.e. the type has been encoded with a later
+ version of the ASN.1 specification). When that happens, the
+ unencoded data will be returned wrapped in a tuple like this:</p>
+
+ <pre>
+{asn1_OPENTYPE,Binary}</pre>
+ <p>where <c>Binary</c> is an Erlang binary that contains the encoded
+ data. (If the option <c>legacy_erlang_types</c> has been given,
+ just the binary will be returned.)</p>
</section>
<section>