## 1 asn1 Release Notes

This document describes the changes made to the asn1 application.

### 1.1 Asn1 1.6.11

#### 1.1.1 Improvements and New Features

- A new option {n2n,TypeName} can be used to enable generation of conversion functions from name to number and vice versa for selected ENUMERATION types. The option can be repeated many times in order to specify several types in the same file.
  If the TypeName specified does not exists or is not an ENUMERATION type, the compilation will be terminated with an error code.
  Below follows an example on how to use the option from the command line with erlc:
  erlc -bper_bin +optimize +driver +"{n2n,'CauseMisc'}" +"{n2n,'CausePcl'}" MyModyle.asn
  Own Id: OTP-8136 Aux Id: seq11347
- Range checks added for BIT STRING with fixed SIZE constraint.
  Own Id: OTP-7972 Aux Id: seq11280
- Now support multiple-line comments in asn1-specs as specified in ASN1 X.680 (07/2002), section 11.6.4
  Own Id: OTP-8043
- Now parses and adds abstract syntax for PATTERN subtype constraint. No other action is taken on this type of constraint.
  Own Id: OTP-8046
- The ASN1 subtype constraint CONTAINING Type, CONTAINING Type ENCODED BY Value and ENCODED BY Value now is parsed. Abstract syntax is added but no further action in generated code is taken.
  Own Id: OTP-8047

### 1.2 Asn1 1.6.10

#### 1.2.1 Fixed Bugs and Malfunctions

- A faulty receive case that catched all messages in the initialization of the driver has been removed, the initialization has been restructured.
  Own Id: OTP-7954 Aux Id: seq11220

#### 1.2.2 Improvements and New Features

- The anonymous part of the decode that splits the ASN1 TLV into Tag Value tuples has been optimized.
  Own Id: OTP-7953

### 1.3 Asn1 1.6.9

#### 1.3.1 Fixed Bugs and Malfunctions

- Error that caused crash when drivers were loaded is now corrected. Parallell driver for asn1 now enabled.
  Own Id: OTP-7904 Aux Id: seq11220

#### 1.3.2 Improvements and New Features

- Optimized code for ENUMERATION type in encoder/decoder.
  Own Id: OTP-7909

### 1.4 Asn1 1.6.8.1

#### 1.4.1 Fixed Bugs and Malfunctions

- Removed parallell-driver functionality due to failure when loading the driver.
  Own Id: OTP-7900 Aux Id: seq11220

#### 1.4.2 Improvements and New Features

- Generated code now uses guards that is not obsolete, e.g. is_integer/1 instead of integer/1.
  Own Id: OTP-7910

### 1.5 Asn1 1.6.8

#### 1.5.1 Fixed Bugs and Malfunctions

- A BIT STRING with a size constraint that has a single value and an extension as in BIT STRING (SIZE (16,...)) was erronous encoded/decoded. This is now corrected and follows X.691 Section 15.6.
  Own Id: OTP-7876 Aux Id: seq11220

### 1.6 Asn1 1.6.7

#### 1.6.1 Improvements and New Features

- Now asn1 starts multiple drivers to enable simultanous encode/decode in different processes for the asn1-backends using linked-in driver.
  Own Id: OTP-7801

### 1.7 Asn1 1.6.6

#### 1.7.1 Fixed Bugs and Malfunctions

- Decode of an open_type when the value was empty tagged type encoded with indefinite length failed. This is now corrected.
  Own Id: OTP-7759 Aux Id: seq11166
- Encode of BIT STRING with size of exact length, on compact_bit_string format in UNALIGNED PER failed when value had the right size, i.e. no padding needed.
  Own Id: OTP-7763 Aux Id: seq11182

### 1.8 Asn1 1.6.5

#### 1.8.1 Fixed Bugs and Malfunctions

- For a BIT STRING with SIZE constraint higher than 255 compiled with [per_bin,optimize, compact_bit_string] an improper io-list was created and sent to the c-driver for complete encoding. This error has been resolved.
  Own Id: OTP-7734 Aux Id: seq11170

### 1.9 Asn1 1.6.4

#### 1.9.1 Fixed Bugs and Malfunctions

- A a SEQUENCE OF with a type that is a CHOICE with ellipses occured falsely a compile error. The error causing that is now removed.
  Own Id: OTP-7708 Aux Id: seq11136

### 1.10 Asn1 1.6.3

#### 1.10.1 Fixed Bugs and Malfunctions

- constrained number with a valuerange greater than 512 now has the proper interpretation of the values that causes shift to the next number of units (bits), According to limit condition 2^m < "range" =< 2^(m + 1) then the number of bits are m + 1.
  Own Id: OTP-7681 Aux Id: seq11114

#### 1.10.2 Improvements and New Features

- Can now handle default values of simple types that is provided on its own format, i.e. not just as asn1_DEFAULT.
  Own Id: OTP-7678 Aux Id: seq11114

### 1.11 Asn1 1.6.2

#### 1.11.1 Fixed Bugs and Malfunctions

- comparison of two value definitions failed due to new module name field in valuedef record. It is now corrected.
  Own Id: OTP-7608

### 1.12 Asn1 1.6.1

#### 1.12.1 Fixed Bugs and Malfunctions

- Bug regarding propagation of parameters of parameterized type fixed.
  Own Id: OTP-7174 Aux Id: seq10864
- A bug, related to instatiation of a parameterized type with a type definition in the parameterlist, has been removed. The defininition of the parameter type was in another module than the instance definition causing limited module info.
  Own Id: OTP-7299 Aux Id: seq10864
- Removed hardcoded name that may cause name collision.
  Own Id: OTP-7322 Aux Id: seq10864
- Object set of a class with id with properties UNIQUE OPTIONAL and the id field is lacking in the object is for now treated as a object without a unique identifier, i.e. no table is generated for this object.
  Own Id: OTP-7332 Aux Id: seq10864
- Compiler crashed when failed to handle a OID as ValueFromObject.
  Own Id: OTP-7476 Aux Id: seq10999
- A corrupted encoding may cause a loop when a buffer of at least two bytes of zero matches tag and length of a SET component. This behaviour occured only with decoder generated with ber or ber_bin optionsNow a control breaks the loop.
  Own Id: OTP-7533
- Encode of BIT STRING longer than 255 bits with a SIZE(integer()) constraint caused a crash when spec was compiled with per_bin, optimize options.
  Own Id: OTP-7602 Aux Id: seq11079

#### 1.12.2 Improvements and New Features

- Now supports REAL type of base 2 and 10
  Own Id: OTP-7166 Aux Id: seq10864
- By the asn1 compiler option {record_name_prefix Name} a prefix is choosen to the name of the record generated in the .hrl and used in the generated .erl files.
  Own Id: OTP-7204 Aux Id: seq10853
- The TypeFromObject production now covered
  Own Id: OTP-7295 Aux Id: seq10468
- Extended support for ObjectSetFromObjects. Production occured as a part of the RootElementSetSpec of the ObjectSetSpec. Added also support for Exclusion of Element in ObjectSetSpec.
  Own Id: OTP-7306 Aux Id: seq10864
- Now implements RELATIVE-OID
  Own Id: OTP-7334 Aux Id: seq10864

### 1.13 Asn1 1.6

#### 1.13.1 Fixed Bugs and Malfunctions

- Now is ordering, accordering to the canonical order, of components in a SET added. Canonical order is described in X.691 9.2 and X.680 8.6
  Own Id: OTP-7375 Aux Id: unaligned PER
- The precedence rules for extended constraints have been misinterpreted. The rule says for instance that if there are more than one constraint on a type that have extensionmark, only the last of the extensionmarks would be kept. This affects the encoding of PER and is now corrected.
  Own Id: OTP-7400 Aux Id: OTP-7335
- A constrained number with a singlevalue constraint that is extensible was falsely encoded/decoded in aligned/unaligned PER. This is now corrected.
  Own Id: OTP-7403

#### 1.13.2 Improvements and New Features

- The ASN.1 compiler has got a new backend supporting PER UNALIGNED. Previously it was only support for PER ALIGNED.
  Own Id: OTP-7335
- Now the asn1-compiler handles unions and intersections of PermittedAlphabet constraints.
  Own Id: OTP-7374 Aux Id: unaligned PER
- With the undocumented option no_final_padding the whole encoded message is not padded to a border of a byte. Thus the returned encoded message is a bitstring.
  Own Id: OTP-7407

### 1.14 Asn1 1.5.2

#### 1.14.1 Fixed Bugs and Malfunctions

- When duplicates of object fields were removed only one table access function for each unique identifier value was generated. This can occur when several object sets are merged by use of ObjectSetFromObjects.
  Own Id: OTP-7263 Aux Id: seq10864
- DER: For some complex types and components with reference to type in several steps the default value check function was not generated. This is now fixed.
  Own Id: OTP-7268 Aux Id: seq10684
- Now is the tag in a tagged type as parameter propagated to the instance.
  Own Id: OTP-7273 Aux Id: seq10864

#### 1.14.2 Improvements and New Features

- Added type T61String that is similar to TeletexString
  Own Id: OTP-7264 Aux Id: seq10864

### 1.15 Asn1 1.5.1

#### 1.15.1 Fixed Bugs and Malfunctions

- A bug related to renaming of types has been fixed.This occured using the .set.asn functionality.
  Own Id: OTP-7149 Aux Id: seq10853
- syntax error in ASN1 value now correctly shown
  Own Id: OTP-7154 Aux Id: seq10864
- Now a COMPONENTS OF construct in a parameterized type is expanded correctly
  Own Id: OTP-7155 Aux Id: seq10864
- Now the asn1-compiler also handles empty SEQUENCE DEFAULT values as {}.
  Own Id: OTP-7169 Aux Id: seq10864
- Now SelectionType gets the tag of the selected type.
  Own Id: OTP-7171 Aux Id: seq10864
- Correction of generated code for decode of an open type in a SEQUECNE OF/ SET OF
  Own Id: OTP-7193 Aux Id: seq10875

#### 1.15.2 Improvements and New Features

- Misc improvements and bug corrections regarding default values.
  Own Id: OTP-7199 Aux Id: seq10864

### 1.16 Asn1 1.5

#### 1.16.1 Improvements and New Features

- Now generating records in .hrl file for instances of parameterized SEQUENCE or SET.
  Own Id: OTP-6835
- Optimization using bitstr in encode/decode functions. Active with [per_bin, optimize] options.
  *** POTENTIAL INCOMPATIBILITY ***
  Own Id: OTP-6882

### 1.17 Asn1 1.4.6

#### 1.17.1 Fixed Bugs and Malfunctions

- Parsing and encoding/decoding of type constrained with SIZE with extension is now recovered.
  Own Id: OTP-6763
- inline failed because tring to use a removed module.
  Own Id: OTP-6769
- Fixed problem with a reference to a type from an object. The failure was caused bye change of type name when using inline option.
  Own Id: OTP-6770
- Handling of decode pattern for exclusive decode was false in the case when an undecoded component had more than one following elements that should be decoded.
  Own Id: OTP-6786

#### 1.17.2 Improvements and New Features

- Now the asn1-compiler supports two root lists in SEQUENCE and SET according to alternative three in ComponentTypeLists (X.680 07/2002 section 24.1), i.e. with an extension list between two ellipses.
  Own Id: OTP-5067 Aux Id: seq8452

### 1.18 Asn1 1.4.5

#### 1.18.1 Fixed Bugs and Malfunctions

- Merging modules by inline earlier disabled the driver (used in modules generated with [ptimized]/[optimized,driver] options). Now this is repaired.
  Own Id: OTP-6601
- Checking phase now aware of which module an INSTANCE OF is declared in.
  Own Id: OTP-6702

#### 1.18.2 Improvements and New Features

- The compiler now handle all forms of ObjectSetSpec according to ITU-T recommendation X.681 (ISO/IEC 8824-2:2002).
  Own Id: OTP-6698
- Enhanced support of referencing object sets by ObjectSetFromObjects.
  Own Id: OTP-6707
- Support for parameterized object in an object set.
  Own Id: OTP-6717

There are also release notes for older versions.

asn1 1.6.11
Copyright © 1991-2009 Ericsson AB