## 1 asn1 Release Notes

This document describes the changes made to the asn1 application.

### 1.1 Asn1 1.4.5

#### 1.1.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.1.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

### 1.2 Asn1 1.4.4.14

#### 1.2.1 Improvements and New Features

- Data in info/0 in generated code is moved to attribute asn1_info, thus vsn value remains the same if compiler options for asn1-spec differs but the generated code is the same.
  Own Id: OTP-6462
- Dialyzer warnings on asn1 are removed, i.e. dead code removed.
  Own Id: OTP-6506

### 1.3 Asn1 1.4.4.13

#### 1.3.1 Improvements and New Features

- Now it is possible to use 'asn1config' and 'inline' options together. It is also possible to use 'inline' on a single file like: `asn1ct:compile("MyASN1spec.asn",[inline])`.
  Own Id: OTP-6405

### 1.4 Asn1 1.4.4.12

#### 1.4.1 Improvements and New Features

- As a complement to the option "{inline,OutputFile}" it is now possible to use the option "inline". Then asn1 creats an output file with the name of the source .set file.
  Own Id: OTP-6314

### 1.5 Asn1 1.4.4.11

#### 1.5.1 Fixed Bugs and Malfunctions

- When copiling an asn1 source that reference a type in another source the compiler uses the asn1db file of the other source to resolve the reference. It also tests whether the other source has been updated since the asn1db file was generated. This last test was to brutal in that it exits compilation when no source was found, even though a asn1db file existed. Changed behaviour from a brutal exit to a warning.
  Own Id: OTP-6143

### 1.6 Asn1 1.4.4.10

#### 1.6.1 Fixed Bugs and Malfunctions

- asn1 encoding failed on BIT STRING with constraint `(SIZE (32..MAX))`.
  Own Id: OTP-5932
- Race condition removed in server for variable names for generated code.
  Own Id: OTP-6111

### 1.7 Asn1 1.4.4.9

#### 1.7.1 Fixed Bugs and Malfunctions

- Now exists a default function clause for table lookup of a table constraint. This causes a nice error instead of a crash. Did also remove some obsolete funs ({Mod,Fun}) in generated code.
  Own Id: OTP-5783
- ASN1-compiler faild to derive a value out of an external reference in some certain cases, when compiling specs so that the spec with the reference was compiled before the spec with the defined value.
  Own Id: OTP-5812 Aux Id: seq10133
- The documentation of how records of embedded types are named is extended and made clearer by examples and rules. The section "Naming of Records in .hrl Files" in the User's Guide is added.
  Own Id: OTP-5831 Aux Id: seq10133
- The compiler failed to give right name to record/function of a parametrized type that was referenced through another instance of a parameterized type in another module. The fault occured when modules were compiled in a certain order. Now the compiler resolves the name correctly.
  Own Id: OTP-5832 Aux Id: seq10133

### 1.8 Asn1 1.4.4.8

#### 1.8.1 Fixed Bugs and Malfunctions

- The dynamic sort of SET OF values now correctly handles values encoded in the "ber_bin, der, optimize" mode, the value of a SET OF is a list of binaries.
  Own Id: OTP-5687
- Bad code was generated for an INTEGER with valuerange. If the value that was encoded had a lower bound with negative value it caused a crash. This bug is now removed.
  Own Id: OTP-5688 Aux Id: seq10049
- Compiler now handles wrong include paths by returning an error if a referenced module is not available.
  Own Id: OTP-5689
- The bug causing a runtime error when encoding a type defined by: `BIT STRING {a(1),b(2)}` with the value [] in `per_bin` mode is now removed.
  Own Id: OTP-5710 Aux Id: seq10066

#### 1.8.2 Improvements and New Features

- Better handling of filename paths
  Own Id: OTP-5701

### 1.9 Asn1 1.4.4.7

#### 1.9.1 Fixed Bugs and Malfunctions

- Effective constraint for `per` now corrected. For instance `INTEGER (0|15..269)` didn't work properly.
  Own Id: OTP-5477 Aux Id: OTP-5511
- Adjusted compiler so that functions in generated code only are exported once.
  Own Id: OTP-5509
- Fixed the compiler failure when handling a value range constraint with an extension mark that had the Lower bound and/or Upper bound values as an external reference to a defined value.
  Own Id: OTP-5511 Aux Id: OTP-5466
- Removed sorting of elements for SEQUENCE OF. It shall only be done in SET OF.
  Own Id: OTP-5602
- Corrected code that generated code causing badarith warning.
  Own Id: OTP-5616

### 1.10 Asn1 1.4.4.6

#### 1.10.1 Known Bugs and Problems

- Compiler now correctly crashes when compiling bad values. Failed for instance on INTEGER value that was a reference to a defined value. Also solved problem with a union constraint on an INTEGER.
  Own Id: OTP-5457
- Additional coverage of object set syntax.
  Own Id: OTP-5466

### 1.11 Asn1 1.4.4.5

#### 1.11.1 Fixed Bugs and Malfunctions

- A bug due to representation of open_type values is now fixed. It could cause problem if one used the EXTERNAL type.
  Own Id: OTP-5302
- Due to an internal error the same code could have been generated more than one time. This happened for the exclusive deocode functionality.
  Own Id: OTP-5378

### 1.12 Asn1 1.4.4.4

#### 1.12.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.12.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.13 Asn1 1.4.4.3

#### 1.13.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.13.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.14 Asn1 1.4.4.2

#### 1.14.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.15 Asn1 1.4.4.1

#### 1.15.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.16 Asn1 1.4.4

#### 1.16.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.16.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

There are also release notes for older versions.

asn1 1.4.5
Copyright © 1991-2007 Ericsson AB