aboutsummaryrefslogtreecommitdiffstats
path: root/lib/asn1/src
AgeCommit message (Collapse)Author
2012-11-26Remove the unused asn1ct_gen_ber moduleBjörn Gustavsson
2012-11-23Remove the unused asn1ct_constructed_ber moduleBjörn Gustavsson
2012-11-23Remove the unused asn1ct_per_bin moduleBjörn Gustavsson
2012-11-23Remove unused functions in asn1rt_ber_binBjörn Gustavsson
2012-11-23Remove obsolete back-ends and simplify the optionsBjörn Gustavsson
It is time to clean up the mess of back-ends. Remove all the obsolete back-ends and simplify the options used to select them. New Option Old Equivalent ---------- -------------- ber ber_bin,optimize,nif per per,optimize,nif uper uper_bin The old options will still be recognized and translated to the new options, but will also print a warning. That implies that deprecated features that only are implemented in the old 'ber' back-end will no longer work (e.g. the {Typename,Value} notation). Also make the return type for the generated encode/2 function consistent. It used to be a binary for per and uper, and an iolist for ber. Always make it a binary.
2012-11-22Make the specialized decodes work with the 'nif' optionBjörn Gustavsson
2012-11-22Remove support for the obsolete {Typename,Value} tuple notationBjörn Gustavsson
Of the back-ends that we are going to keep, only the UPER back-end support the obsolete {Typename,Value} notation. For consistency with the PER and BER encodings, remove the support for UPER encoding too. Also remove vestiges of the support for the notation in the other back-ends.
2012-11-22Remove the obsolete and deprecated 'keyed_list' optionBjörn Gustavsson
The 'keyed_list' was only supported for the 'ber' and 'ber_bin' backends and has been undocumented for a long time. Also remove the note in the documentation about the feature.
2012-08-31Update copyright yearsBjörn-Egil Dahlberg
2012-08-30Merge branch 'kenneth/asn1/dialyzer-warnings' into maintBjörn-Egil Dahlberg
* kenneth/asn1/dialyzer-warnings: Remove Dialyzer warnings
2012-08-28Merge branch 'hw/asn1rt_check-transform' into maintHenrik Nord
* hw/asn1rt_check-transform: asn1rt_check: Fix transform_to_EXTERNAL1990 for binary input OTP-10233
2012-08-28Remove Dialyzer warningsKenneth Lundin
2012-08-20Corrected decoding to encorse a proper error return is there is tag mismatchKenneth Lundin
2012-08-15Merge branch 'gustav/asn1/enumerated_n2n/OTP-10144' into maintGustav Simonsson
* gustav/asn1/enumerated_n2n/OTP-10144: Add support for extensible enumeration types in n2n generated functions. Make n2n option work for enumerated types without extension markers. Add test enumeration types for testing n2n option when using the name2num and num2name functions on an enumeration value not in the extension root of an enumeration type with extension marker.
2012-08-15Merge branch 'gustav/asn1/integer_single_value_predefined/OTP-10139' into maintGustav Simonsson
* gustav/asn1/integer_single_value_predefined/OTP-10139: In generation of encoding functions for enumeration types, the values used for generating the range check in case of a value range should be sorted and have duplicates removed. Add sorting in constraint checking on single values. Conflicts: lib/asn1/test/testConstraints.erl
2012-08-15Merge branch 'gustav/asn1/per_integer_ranges/OTP-10128' into maintGustav Simonsson
* gustav/asn1/per_integer_ranges/OTP-10128: Keep encoded octets of constrained whole number value and range as binaries and use erlang:byte_size to get length of octets and range. For speed. Add support for larger integer ranges in per encode/decode
2012-07-18Merge branch 'at/fix_asn1_typo' into maintHenrik Nord
* at/fix_asn1_typo: Fix typo error in selected decode function OTP-10152
2012-07-11Add support for extensible enumeration types in n2nGustav Simonsson
generated functions. OTP-10144
2012-07-11Make n2n option work for enumerated types without extensionGustav Simonsson
markers. Add test enumeration types for testing n2n option when using the name2num and num2name functions on an enumeration value not in the extension root of an enumeration type with extension marker.
2012-07-10In generation of encoding functions for enumeration types,Gustav Simonsson
the values used for generating the range check in case of a value range should be sorted and have duplicates removed. For per with optimization (per_rt2ct), sorting has been added. For both optimized and regular per, the sorting and duplicate removal code has been simplified. In case of value range, 'MIN' and 'MAX' is now also checked. The sorting of constraint values in the check phase remains.
2012-07-05Add sorting in constraint checking on single values.Gustav Simonsson
Fix a bug where a subtyped single value integer type where one or more values were predefined would result in generated encoding code having faulty range checks. See seq12102. OTP-10139
2012-07-03Keep encoded octets of constrained whole number value andGustav Simonsson
range as binaries and use erlang:byte_size to get length of octets and range. For speed.
2012-06-28Add support for larger integer ranges in per encode/decodeGustav Simonsson
Encoding and decoding of integer ranges can now be done with an upper bound larger than the previous limit of 16^10. The new upper bound in per encoding and decodings for constrained whole numbers is 2^2040 (close to 16^508) which is the limit if the length field encoding in the encoding of a constrained whole number is limited to a single octet. Related support seq: seq12060
2012-06-08Merge branch 'lukas/otp/install_with_whitespace/OTP-10107' into maintLukas Larsson
* lukas/otp/install_with_whitespace/OTP-10107: Update to work with space in include path Update to work with whitespace in exec path
2012-06-05Update to work with whitespace in exec pathLukas Larsson
OTP-10106 OTP-10107
2012-05-17Fix typo error in selected decode functionArtem Teslenko
2012-05-04Add support for multiple ExtensionAdditionGroupsKenneth Lundin
2012-03-30Update copyright yearsBjörn-Egil Dahlberg
2012-03-29replace 5 sec timeout (too short) with monitor in asn1_db requestsKenneth Lundin
This bug was introduced as part of the parallelization of test suites and is notpart of any released version
2012-03-27Correct handling of INTEGER (1..4 | 8 | 10 | 20)Kenneth Lundin
2012-02-28[asn1] Parallelize test suitesAdam Lindberg
2012-02-28[asn1] Make tables and processes unnamedAdam Lindberg
- Refactor and clean up asn1_db process - Remove unused stop function in asn1ct.erl - Remove infinite loop possibilites in asn1ct_check.erl - test/1,2,3 now run in separate process - Update documentation for new test options
2012-02-28[asn1] Abstract out table access to new moduleAdam Lindberg
All table access is now performed in a separate module. This will allow changes to how ETS is handled by changing only this module. Note that the module exports a very ETS-like interface for now which would have to be maintained even if the data format would change (to a hash map for example).
2012-02-28[asn1] Run asn1 compilation in a separate processAdam Lindberg
2012-02-13Fix to integer and sequence definitionsGustav Simonsson
Enable re-use of integer definitions in subsequent definitions and added clauses to check greatest common range for sequence definitions
2011-12-09Update copyright yearsBjörn-Egil Dahlberg
2011-11-30asn1: Eliminate use of tuple funBjörn Gustavsson
2011-10-18asn1rt_check: Fix transform_to_EXTERNAL1990 for binary inputHarald Welte
If ber_bin is used, decoded EXTERNAL types will include a binary Data_value in the {'EXTERNAL', ...} tuple. When handing such a tuple to the encoder again, we should properly encode it. To do so, we treat a binary data part just like a list data part.
2011-09-23Merge branch 'dev' into majorLukas Larsson
* dev: Update ber_bin and ber_bin_v2 to return binaries
2011-09-23Merge branch 'lukas/asn1/fix_ber_other_testcase/OTP-9573' into devLukas Larsson
* lukas/asn1/fix_ber_other_testcase/OTP-9573: Update ber_bin and ber_bin_v2 to return binaries
2011-09-23Update ber_bin and ber_bin_v2 to return binariesLukas Larsson
2011-09-13Merge branch 'dev' into majorHenrik Nord
Conflicts: lib/asn1/doc/src/asn1ct.xml
2011-09-08asn1ct: add warnings_as_errors optionTuncer Ayaz
2011-08-02Remove some superflous includes which caused inlined modules to have lots of ↵Lukas Larsson
compile warnings
2011-08-01Update code genaration to call nif/erlang depending on what is configuredLukas Larsson
2011-08-01Remove export_all and only export is_nif_loadableLukas Larsson
2011-08-01Create a nif for ber encodeLukas Larsson
2011-08-01Extract generic is_nif_loadable function from decodeLukas Larsson
2011-08-01Update decode_open_type to use nifs if configured to do soLukas Larsson
2011-08-01Add -deprecated attributesLukas Larsson