summaryrefslogtreecommitdiff
path: root/lib/asn1/src/asn1rtt_check.erl
Commit message (Collapse)AuthorAgeFilesLines
* update copyright-yearHenrik Nord2016-03-151-1/+1
|
* Change license text to APLv2Bruce Yinhe2015-06-181-9/+10
|
* Rewrite the code for testing DEFAULT for DERBjörn Gustavsson2014-06-051-196/+104
| | | | | The old code for testing DEFAULT values is messy, inefficient, and causes dialyzer warnings.
* Fix broken handling of default values for BIT STRINGsBjörn Gustavsson2013-10-011-33/+58
| | | | | | | | | | | | | | | | | | | | | | For DER/PER/UPER, a value equal to the DEFAULT is not supposed to be encoded. BIT STRINGs values can be represented as Erlang terms in four different ways: as an integer, as a list of zeroes and ones, as a {Unused,Binary} tuple, or as an Erlang bitstring. When encoding a BIT STRING, only certain representations of BIT STRINGs values were recognized. All representations must be recognized. When decoding a DEFAULT value for a BIT STRING, the actual value given in the decoding would be either an integer or a list of zeroes and one (depending on how the literal was written in the specification). We expect that the default value should be in the same representation as any other BIT STRING value (i.e. by default an Erlang bitstring, or a list if the 'legacy_bitstring' option has been given, or as compact bitstring if 'compact_bitstring' has been given).
* Add and use asn1rtt_checkBjörn Gustavsson2013-01-221-0/+276