## 1 asn1 Release Notes

This document describes the changes made to the asn1 application.

### 1.1 Asn1 1.4.4.4

#### 1.1.1 Fixed Bugs and Malfunctions

- Empty objects caused problems. There was trouble when an object set referenced imported objects that in turn referenced imported types. Lacked support of SelectionType in object. All these have been attended.
  Own Id: OTP-5240

#### 1.1.2 Improvements and New Features

- Now it is possible to inline asn1 run-time functionality in the module generated by the asn1 compiler. Thus, it will be only one module doing all encoding/decoding.
  Own Id: OTP-5243

### 1.2 Asn1 1.4.4.3

#### 1.2.1 Fixed errors and malfunctions

- A class that was referenced in two steps caused a compiler failure. It is now corrected.
  Own Id: OTP-5103

#### 1.2.2 Improvements and new features

- Optionally make it possible to get the undecoded rest along with the return value. Compile with option undec_rest.
  Own Id: OTP-5104

### 1.3 Asn1 1.4.4.2

#### 1.3.1 Fixed errors and malfunctions

- An error due to unchecked referenced imported type resulted in missing tag in some table constraint cases. This error is now corrected. Error occured during decode in `ber_bin optimized` version.
  Own Id: OTP-5022

### 1.4 Asn1 1.4.4.1

#### 1.4.1 Fixed errors and malfunctions

- When a referenced value in another module in turn referenced a defined value the compilation crashed. This is due to the new rutines for compilation, that external referencies are resolved during compilation, and not by the order in which modules are compiled. This error is now corrected.
  Own Id: OTP-4970

### 1.5 Asn1 1.4.4

#### 1.5.1 Fixed errors and malfunctions

- Functionality for parameterized class is added. Parsing failures on WithSyntax spec is corrected.
  Own Id: OTP-4893
- The failure due to Parameterized Type when parameter is an object set is corrected.
  Own Id: OTP-4894
  Aux Id: OTP-4893
- Object Identifier values with two components and teh first was a value reference failed due to parsing conflicts. Now it is corrected.
  Own Id: OTP-4895
- The errorounus comparison of file name and asn1 module name could cause compilation failure. The situation for this failure is rare, it requires that other processes modifies the compiled file during the compilation procedure. It is now fixed.
  Own Id: OTP-4944
  Aux Id: seq8429
- Selective decode was ignored when exclusive decode spec in asn1 configfile was missing. Selective decode failed when the selected type was the top type. These bugs are now removed.
  Own Id: OTP-4953
  Aux Id: seq8436
- The test interface asn1ct:test/1,2,3 and asn1ct:value/2 failed for open type and EXTERNAL. The bug is now removed.
  Own Id: OTP-4955
  Aux Id: seq8438)
- Two equal functions were generated for two components referencing the same type when they were picked by the action "parts". The bug is now fixed.
  Own Id: OTP-4957
  Aux Id: seq8434

#### 1.5.2 Improvements and new features

- INTEGER with named number list and ENUMERATED can now be sub constrained with names from the names list.
  Own Id: OTP-4917
- Now there is support for SelectionType (X 680 section 29)
  Own Id: OTP-4918
- The compiler now resolves circular dependencies. When asn1 specs IMPORTS from each other so that there are circular dependencies.
  Own Id: OTP-4919
- Now is the asn1 type UTF8String supported. For user instructions see documentation.
  Own Id: OTP-4965

### 1.6 Asn1 1.4.3.2

#### 1.6.1 Improvements and new features

- Release of Asn1 1.4.3.1 on R7B, The functionality is the same, but the layer between the driver and the asn1 erlang code is different.

### 1.7 Asn1 1.4.3.1

#### 1.7.1 Fixed errors and malfunctions

- The `{internal_error,...,{ unrecognized_type,...}}` error occuring for a SET type when compiling with options `[ber_bin,optimize,der]` is now corrected.
  Own Id: OTP-4866
- False encode of BIT STRING in PER (per_bin,optimize) is fixed. The error occured when there was a type like BIT STRING (SIZE(C)) and C > 16.
  Own Id: OTP-4869

### 1.8 Asn1 1.4.3

#### 1.8.1 Fixed errors and malfunctions

- Functionality to handle parameterized object sets have been added.
  Own Id: OTP-4832
- Bug causing duplicated fuction definitions using exclusive decode is removed.
  Own Id: OTP-4833)
- The race condition when loading asn1 driver is solved.
  Own Id: OTP-4835

#### 1.8.2 Improvements and new features

- A specialized decode, selective decode is now available. It decodes a chosen internal sub-type of a constructed type.
  Own Id: OTP-4856)

### 1.9 Asn1 1.4.2.2

#### 1.9.1 Fixed errors and malfunctions

- Release of Asn1 1.4.2.1 on R7B, The functionality is the same, but the layer between the driver and the asn1 erlang code is different.

### 1.10 Asn1 1.4.2.1

#### 1.10.1 Fixed errors and malfunctions

- ObjectDescriptor does now work as part of a sequence, set or choice.
  Own Id: OTP-4773
- When a SEQUENCE that have extension mark was decoded inside a SEQUENCE OF it could cause decode error due to a failure in restbytes2. It is now corrected.
  Own Id: OTP-4791)
- Now the bug is fixed that caused the compiler crash on an untaged optional open type.
  Own Id: OTP-4792
- The earlier exit caused by bad indata is now fixed so it will rreturn an {error,Reason} tuple.
  Own Id: OTP-4797
- Open type encoded with indefinite length is now correct decoded.
  Own Id: OTP-4798
- Now is absent optional open types handled correctly.
  Own Id: OTP-4799
- Now is the necessary functions available for sorting in run-time of SET and SET OF components.
  Own Id: OTP-4809

### 1.11 Asn1 1.4.2

#### 1.11.1 Fixed errors and malfunctions

- When a component in a SEQUENCE is a CHOICE (or reference to a CHOICE) and the SEQUENCE's component and one of the alternatives in the CHOICE have identical names, an error may occur if one doesn't use the 'optimized' versions of the compiler. In the older versions (

      ber,
          ber_bin, per, per_bin

  ) one could optionally apply a value of a component as

      {ComponentName,Value}

  , and the generated code chooses the second element of the tuple. However, a value of a CHOICE must be applied as a tuple:

      {AlternativeName,Value}

  . Thus, in the rare case described above and if the value to the SEQUENCE's component is not in a tuple notation the

      {AlternativeName,Value}

  will be peeled off in the SEQUENCE and the value fed to the CHOICE will only be the

      Value

  part of

      {AlternativeName,Value}

  , and the encoder crashes. The best way to avoid this is to use the optimized version of the compiler where the unnecessary tuple notation

      {ComponentName,Value}

  no longer is allowed. Since it isn't possible to solve this bug in the compiler. Own Id: OTP-4693

#### 1.11.2 Improvements and new features

- Exclusive decode is enabled by a compiler option and a configuration file. It makes it possible to leave parts of an ASN.1 encoded message undecoded.
  Own Id: OTP-4744

### 1.12 Asn1 1.4.1.1

#### 1.12.1 Fixed errors and malfunctions

- The documentation about how extensibility is handled is now corrected.
  Own Id: OTP-4663
- Function in object now calls the exported function
  Own Id: OTP-4665
- Now is tags for ObjectClassFieldType analyzed correctly.
  Own Id: OTP-4666

### 1.13 Asn1 1.4.1

#### 1.13.1 Fixed errors and malfunctions

- Now is the Default value for an ENUMERATED returned as the name from the NamedList when decoding.
  Own Id: OTP-4633
- It was an internal failure when permitted alphabet constraint existed together with for instance a size constraint. E.g. when a referenced type is constrained by a size constraint and the defined type in turn is constrained by a permitted alphabet constraint.
  Own Id: OTP-4559
- Record is generated in hrl file for a CHOICE with extension mark that has an internal SEQUENCE/SET definition.
  Own Id: OTP-4560
- Now is the length of a SEQUENCE/SET OF correctly encoded/decoded (PER).
  Own Id: OTP-4590
- The problem with unordered decoded terms when a component is a ObjectClassFieldType has been solved.
  Own Id: OTP-4591

#### 1.13.2 Improvements and new features

- More complex definitions with TableConstraints where the SimpleTable and ComponentRelation are on different levels is now fully supported.
  Own Id: OTP-4631

### 1.14 Asn1 1.4

#### 1.14.1 Fixed errors and malfunctions

#### 1.14.2 Improvements and new features

- Each generated .erl file have now a function info/0 that returns information about the used compiler version and options.
  Own Id: OTP-4373
- When compiling an ASN.1 module the compiler generates an Erlang module that is compiled by the Erlang compiler. Earlier it was not possible to add options to the final step, the Erlang compilation. By adding any option that is not recognized as a specific ASN.1 option it will be passed to the final step like:

      erlc +debug_info
          Mymodule.asn

  or

      asn1ct:compile('Mymodule',[debug_info])

  . Own Id: OTP-4491
- Earlier one couldn't multi file compile modules that had different tagdefaul, which now is possible. Equal Type/Value names in different modules are resolved by renaming (concatenate type name and module name): If two types with the same name T exist in module A and module B they will get the new names TA and TB.
  (Own Id: OTP-4492)
  Aux Id: OTP-3983
- BER: Encode/decode of data have been significantly improved. By use of the compiler options

      ber_bin

  and

      optimize

  , optimized code will be generated and the optimized run-time module will be used. Own Id: OTP-4493

There are also release notes for older versions.

Copyright © 1991-2005 Ericsson AB