aboutsummaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)Author
2012-12-06Refactor code generation for decoding SEQUENCE/SETBjörn Gustavsson
In order to optimize the generated code, we will need data structures that can be traversed in several passes before the actual code is generated. Refactor the code so that if first builds (essentially) a list of funs that do the actual code generation, and a second function that will call the funs one at the time.
2012-12-06Teach asn1ct_imm to optimize alignmentBjörn Gustavsson
2012-12-06Optimize decoding of OCTET STRINGsBjörn Gustavsson
Decoding of fragmented OCTET STRINGs was only implemented when the size was constrained to a single value. While at it, support decoding fragmented OCTET STRINGS in all circumstances.
2012-12-06Implement encoding of fragmented OCTET STRINGsBjörn Gustavsson
Decoding of a fragmented OCTET STRING with the size constrained to a single value is implemented, but encoding is not implemented, and decoding is not tested in any test case. There is no urgent need to support encoding of fragmented OCTET STRINGs, but not being able to encode such values complicates testing of decoding. For example, eif we add the following type to PrimStrings.asn1 in the test suite: FixedOs65536 ::= OCTET STRING (SIZE (65536)) then asn1ct:test('PrimStrings') will fail because this value cannot be encoded.
2012-12-06Use asn1ct_imm to optimize decoding of per and uperBjörn Gustavsson
A long term goal is to eleminate the asn1ct_gen_per_rt2ct module in favor of the asn1ct_gen_per module, so will have asn1ct_gen_per_rt2ct call asn1ct_gen_per.
2012-12-06Use asn1ct_imm:effective_constraint/2Björn Gustavsson
It is error-prone to have several copies of the same function.
2012-12-06Add the asn1ct_imm moduleBjörn Gustavsson
2012-12-06Makefile: Add dependencies for header filesBjörn Gustavsson
2012-12-06Eliminate the useless 'telltype' argument in component decodingBjörn Gustavsson
2012-12-06testPrimString: Increase readability by introducing a roundtrip functionBjörn Gustavsson
Reduce verbosity and introduce readability by introducing the roundtrip/2 function. That will help us to do future extensions to this test suite.
2012-12-06asn1_SUITE: Let the per/1 test case also test 'uper'Björn Gustavsson
2012-12-06asn1ct_value: Fix type for open type value for uperBjörn Gustavsson
2012-12-06Optimize encoding/decoding of NULL in the per and uper back-endsBjörn Gustavsson
Don't waste time calling a trivial function in the run-time library for encoding and decoding of NULL values.
2012-12-06Suppress warnings for unused variables using a compiler optionBjörn Gustavsson
Currently, the generated code suppresses warnings for unusued variables by assigning to the "_Val" variable, for example: _Val = Tmpval5 To be completely safe, that should have been: _ = Tmpval5 in case there happens to more than one such assignment in the same scope. However, a better way to suppress warnings is to simply use the 'nowarn_unused_vars' compiler option. That method will also work for more complicated expressions there it would be cumbersome to suppress warnings by assignment to "_".
2012-12-06Merge branch 'bjorn/remove-tuple-funs/OTP-10170'Björn Gustavsson
* bjorn/remove-tuple-funs/OTP-10170: erl_expand_records: Remove stale support for literal tuple funs Teach is_function/2 that tuples are not funs
2012-12-06Merge branch 'bjorn/compiler/minor-optimization-polishing/OTP-10193'Björn Gustavsson
* bjorn/compiler/minor-optimization-polishing/OTP-10193: beam_bsm: Improve handling of bs_start_match2 instructions beam_utils: Improve is_not_used/3 for bit syntax matching beam_bsm: Make the optimization applicable in more circumstances beam_jump: Move bs_context_to_binary/1 + exit instruction
2012-12-06Merge branch 'fredrik/eldap/fix-dialyzer-warnings-r16'Fredrik Gustafsson
* fredrik/eldap/fix-dialyzer-warnings-r16: Bumped version number Changed structure to fix dialyzer warnings eldap.erl
2012-12-06Bumped version numberFredrik Gustafsson
2012-12-05Merge branch 'sverk/bs_construct_SUITE-outofmem'Sverker Eriksson
* sverk/bs_construct_SUITE-outofmem: erts: Limit memory usage of bs_construct_SUITE:huge_binary
2012-12-05Merge branch 'sverk/crypto-openssl-0.9.7'Sverker Eriksson
* sverk/crypto-openssl-0.9.7: crypto: Skip sha256/512 tests for openssl 0.9.7 crypto: Refactor test with if_098 helper function crypto: Let info_lib return header version instead of lib version crypto: Make crypto:info() up to date crypto: Add some unlisted test cases as part of the test suite crypto: Fix some documentation bugs crypto: Throw notsup for DES3 CFB encryption for old openssl
2012-12-04crypto: Skip sha256/512 tests for openssl 0.9.7Sverker Eriksson
2012-12-04crypto: Refactor test with if_098 helper functionSverker Eriksson
2012-12-04crypto: Let info_lib return header version instead of lib versionSverker Eriksson
2012-12-04crypto: Make crypto:info() up to dateSverker Eriksson
Also added test code to check the consistency of crypto:info().
2012-12-04crypto: Add some unlisted test cases as part of the test suiteSverker Eriksson
2012-12-04crypto: Fix some documentation bugsSverker Eriksson
2012-12-04crypto: Throw notsup for DES3 CFB encryption for old opensslSverker Eriksson
An attempt to enable the use of openssl 0.9.7
2012-12-04Merge branch 'ta/docsmaster'Henrik Nord
* ta/docsmaster: Fix various doc typos for R16 Fix various typos in HOWTO/ for R16 Fix various comment typos for R16 OTP-10611
2012-12-04Merge branch 'lf/snmp-fix-typo'Henrik Nord
* lf/snmp-fix-typo: Fix typo in snmpm doc OTP-10610
2012-12-04update vsnHenrik Nord
2012-12-04Added test case for new odbc option 'extended_errors'Franko Franicevich
Test case is in odbc 'connect' suite; and just tries force an error with the extended errors flag both on and off; validating the return types. OTP-10603
2012-12-04Add extended_errors option to ODBCBernard Duggan
This patch adds the extended_errors option to odbc:connect/2. When enabled, this option alters the return code of ODBC operations that produce errors to include the ODBC error code as well as the native error code, in addition to the ODBC reason field which is returned by default. The extended error information can be used to produce more sophisticated error handling than is possible with the standard ODBC Reason alone.
2012-12-03erl_expand_records: Remove stale support for literal tuple funsBjörn Gustavsson
2012-12-01Teach is_function/2 that tuples are not funsBjörn Gustavsson
2012-11-30Merge branch 'fredrik/inet/export-ip-funcs/OTP-8067'Fredrik Gustafsson
* fredrik/inet/export-ip-funcs/OTP-8067: Inet doc clarifications Documentation changes inet Changes to function names, tests and docs of inet Added specs and doc Exported ipv4address and ipv6address functions to inet module, changed and made testcases
2012-11-29Changed structure to fix dialyzer warnings eldap.erlFredrik Gustafsson
2012-11-28Fix various doc typos for R16Tuncer Ayaz
2012-11-28Fix various typos in HOWTO/ for R16Tuncer Ayaz
2012-11-28Fix various comment typos for R16Tuncer Ayaz
2012-11-28erts: Limit memory usage of bs_construct_SUITE:huge_binarySverker Eriksson
depending on the amount of free memory on the host
2012-11-28Merge branch 'maint'Patrik Nyblom
2012-11-28Merge branch 'pan/win2012_installer' into maintPatrik Nyblom
* pan/win2012_installer: Teach Win installer to handle redist on w2012/w8 OTP-10598
2012-11-28Merge branch 'sverk/crypto-unloading'Sverker Eriksson
* sverk/crypto-unloading: crypto: Link crypto_callback statically crypto: Add debug print macros crypto: Enable runtime upgrade of crypto crypto: Make unloading of crypto safer OTP-10596
2012-11-28Merge branch 'ia/ssl/sslv2-tests'Ingela Anderton Andin
* ia/ssl/sslv2-tests: ssl: Receive port EXIT-message so that it does not get mixed up with the protocol-error message we are expecting
2012-11-27Merge branch 'egil/darwin-fixes'Björn-Egil Dahlberg
* egil/darwin-fixes: erl_interface: Avoid redefinition of ALIGNBYTES erts: Fix '#ifdef' for unused static functions erts: Remove forgotten vxworks includes hipe: Cast offsetof to int in hipe_arch_print_pcb
2012-11-27Teach Win installer to handle redist on w2012/w8Patrik Nyblom
Also made check for DLL version against redistributables instead of towards installed system, as some builds required redistributables everytime (installed dll on build machine had higher version than the redist)...
2012-11-27Merge tag 'OTP_R15B03'Björn-Egil Dahlberg
The R15B03 release
2012-11-27ssl: Receive port EXIT-message so that it does not get mixed up with the ↵Ingela Anderton Andin
protocol-error message we are expecting
2012-11-27Merge branch 'ia/ssl/peer-cert-server'Ingela Anderton Andin
* ia/ssl/peer-cert-server: ssl: Add test case for ssl:peercert with client certification
2012-11-27Merge branch 'ia/ssl/new-server-options-reuse-session/OTP-10595'Ingela Anderton Andin
* ia/ssl/new-server-options-reuse-session/OTP-10595: ssl: Add and enhance tests ssl: Consider new server options when resuming a session