Age | Commit message (Collapse) | Author | |
---|---|---|---|
2018-04-09 | erl_docgen: Add ghlink step for all non-generated doc xml files | Lukas Larsson | |
In order to get line numbers into the ghlink we have to add a post processing step for all xml files. | |||
2018-03-09 | Update release notes | Erlang/OTP | |
2017-12-08 | Update release notes | Erlang/OTP | |
2017-10-10 | Merge branch 'lars/doc-cleanup/OTP-14475' into maint | Lars Thorsen | |
* lars/doc-cleanup/OTP-14475: [edoc] Remove unused module otpsgml_layout.erl Remove unused files from the documentation build | |||
2017-09-28 | Remove unused files from the documentation build | Lars Thorsen | |
2017-09-22 | Update release notes | Erlang/OTP | |
2017-08-23 | Prepare release | Erlang/OTP | |
2017-07-26 | Update release notes | Erlang/OTP | |
2017-06-21 | Prepare release | Erlang/OTP | |
2017-06-14 | Update copyright year | Hans Nilsson | |
2017-06-13 | Remove reference to removed module 'asn1rt' | Björn Gustavsson | |
2017-05-31 | Revert "Prepare release" | Hans Nilsson | |
This reverts commit eaf8ca41dfa4850437ad270d3897399c9358ced0. | |||
2017-05-30 | Prepare release | Erlang/OTP | |
2017-05-05 | Revert "Prepare release" | Raimo Niskanen | |
This reverts commit dc57404252c47520f352834ad9be45ad684f96c9. | |||
2017-05-04 | Prepare release | Erlang/OTP | |
2017-05-04 | Update copyright year | Raimo Niskanen | |
2017-02-21 | encode/decode: Include the stack trace in error returns | Björn Gustavsson | |
The generated encode/2 and decode/2 functions can return cryptic error messages. Consider this ASN.1 spec: T DEFINITIONS AUTOMATIC TAGS ::= BEGIN S ::= SEQUENCE { b BOOLEAN, i INTEGER (1..100), j INTEGER (0..7), s OCTET STRING } END In OTP 19, the error terms will look like this: Eshell V8.2 (abort with ^G) 1> asn1ct:compile('T', [ber]). ok 2> rr('T'). ['S'] 3> 'T':encode('S', #'S'{}). {error,{asn1,{encode_boolean,undefined}}} 4> 'T':encode('S', #'S'{b=false}). {error,{asn1,{encode_integer,undefined}}} 5> 'T':encode('S', #'S'{b=false,i=7,j=0}). {error,{asn1,function_clause}} Some error terms are clearer than other. In the first error term, it is clear that the error refers to the 'b' field, since there is only one BOOLEAN in 'S'. The second error term could refer to either 'i' or 'j'. The last error term... well... in this case we can infer that it must refer to 's'. The easiest way to provide more information is to include the stack trace with line numbers in the error term: 3> 'T':encode('S', #'S'{b=false}). {error,{asn1,{{encode_integer,undefined}, [{'T',encode_integer,2,[{file,"T.erl"},{line,240}]}, {'T',enc_S,2,[{file,"T.erl"},{line,102}]}, {'T',encode,2,[{file,"T.erl"},{line,36}]}, {erl_eval,do_apply,6,[{file,"erl_eval.erl"},{line,674}]}, {shell,exprs,7,[{file,"shell.erl"},{line,686}]}, {shell,eval_exprs,7,[{file,"shell.erl"},{line,641}]}, {shell,eval_loop,3,[{file,"shell.erl"},{line,626}]}]}}} By looking at the generated Erlang code, we can see that encoding failed for 'i'. This is an compatible change. All that the documentation says is that the format of the error tuple is: {error,{asn1,Description}} With this change, Description is always a tuple: {ErrorDescription,StackTrace} Alternatives considered: Providing more information in the error term itself and make sure there can be no 'function_clause', 'badarg', or 'badmatch' exceptions. That would be possible, but it would require a lot of work and it would increase the size of the generated code and make it slower. Therefore, this solution was rejected. | |||
2017-02-06 | Teach the ASN.1 compiler the 'maps' option | Björn Gustavsson | |
When the 'maps' option is given, the SEQUENCE and SET types are represented as maps instead of as records. Optional and default values must be not be given as asn1_NOVALUE or asn1_DEFAULT in a map passed to the M:encode/2 function; they must be omitted from the map. Similarly, when decoding missing values will be omitted from the map. No .hrl files will be generated when the 'maps' options is used. That means values in an ASN.1 module must be retrieved by calling the appropriate function in generated module. Since we one day hope to get rid of the options 'compact_bit_string', 'legacy_bit_string', and 'legacy_erlang_types', we will not allow them to be combined with the 'maps' option. | |||
2017-01-13 | asn1: Remove deprecated functions | Björn Gustavsson | |
Remove the entire asn1rt module. All functions in it were deprecated in OTP 17. In asn1ct, remove the deprecated functions asn1ct:encode/3 and asn1ct:decode/3. Also remove asn1ct:encode/2, which has not been formally deprecated but is undocumented. | |||
2016-09-20 | Prepare release | Erlang/OTP | |
2016-09-01 | doc: Correct errors introduced by Editorial changes | Hans Bolinder | |
Fix some older errors as well. | |||
2016-06-21 | Prepare release | Erlang/OTP | |
2016-06-02 | Revert "Prepare release" | Erlang/OTP | |
This reverts commit e020f75c10410a6943cd055bfa072a2641eab7da. | |||
2016-06-02 | Prepare release | Erlang/OTP | |
2016-05-12 | Revert "Prepare release" | Erlang/OTP | |
This reverts commit bd64ad8e15d66e48b36dbe3584315dd5cfc8b59a. | |||
2016-05-11 | Prepare release | Erlang/OTP | |
2016-03-15 | update copyright-year | Henrik Nord | |
2016-03-14 | Prepare release | Erlang/OTP | |
2015-12-15 | Update release notes | Erlang/OTP | |
2015-06-23 | Prepare release | Erlang/OTP | |
2015-06-18 | Change license text to APLv2 | Bruce Yinhe | |
2015-05-22 | asn1 doc: Alert users of limitations in test and value functions | Björn Gustavsson | |
Add a note about the limitations of the asn1ct:test/1,2,3 and asn1ct:value/2 functions. | |||
2015-05-13 | Revert "Prepare release" | Henrik Nord | |
This reverts commit e09dd66dc4d89c62ddfd8c19791f9678d5d787c6. | |||
2015-05-12 | Prepare release | Erlang/OTP | |
2015-05-08 | asn1_spec: Correct obsolete details about compiler options | Björn Gustavsson | |
There is now only one BER back-end, and there is no 'optimize' option. | |||
2015-05-08 | Update asn1 documentation | xsipewe | |
Language cleaned up by the technical writers xsipewe and tmanevik from Combitech. Proofreading and corrections by Björn Gustavsson. | |||
2015-03-31 | Prepare release | Erlang/OTP | |
2014-12-09 | Prepare release | Erlang/OTP | |
2014-09-15 | Update release notes | Erlang/OTP | |
2014-08-25 | Fix misspellings of 'another' | Tuncer Ayaz | |
2014-06-19 | Prepare release | Erlang/OTP | |
2014-04-07 | Update release notes | Erlang/OTP | |
2014-03-28 | Consistenly use ASN.1 instead of asn1 | Björn Gustavsson | |
When talking about the ASN.1 standard, ASN.1 specifications, and the ASN.1 compiler, consistently use "ASN.1" instead of "asn1". | |||
2014-03-28 | Correct some spelling, grammar and punctation issues | Björn Gustavsson | |
2014-03-28 | Correct description of the undec_rest option | Björn Gustavsson | |
The trailing bytes returned are now always a binary. Also condense and clean up the language. | |||
2014-03-28 | Correct description of the REAL type | Björn Gustavsson | |
REAL is implemented, sort of. But real numbers must be given in a string. | |||
2014-03-28 | Replace "extend-ability" with "extensibility" | Björn Gustavsson | |
While "extendability" (without the hyphen) is an English word, "extensibility" is the established term used when talking about the extensibility of ASN.1 types. | |||
2014-03-28 | Remove the section about encoding rules | Björn Gustavsson | |
The section about encoding rules serves no useful purpose. Most users already know which encoding rule to use for their specifications. The few users that have their own specification and need to decide on which encoding rule to use will need much more information. | |||
2014-03-28 | Bring information about tags up to date | Björn Gustavsson | |
Since 1994 when the AUTOMATIC TAGS was introduced, ASN.1 users no long need to worry about tagging, and the following sentence no longer makes any sense: It is essential for all users of ASN.1 to understand all the details about tags. Therefore, remove the entire existing section of tags, and replace it with a shorter section explaining why we no longer need to know about tags. Remove all tags from the examples. | |||
2014-03-28 | Don't waste words describing the SET type | Björn Gustavsson | |
Since the SET type is used exactly the same way as the SEQUENCE type in Erlang, we can simply say so and note that decoding will be less efficient for the BER and DER encoding rules. |