aboutsummaryrefslogtreecommitdiffstats
path: root/lib
AgeCommit message (Collapse)Author
2017-08-10Generalize optimization of "one-armed" casesBjörn Gustavsson
A 'case' expression will force a stack frame (essentially in the same way as a function call), unless it is at the end of a function. In sys_core_fold there is an optimization that can optimize one-armed cases such as: case Expr of Pat1 -> DoSomething; Pat2 -> erlang:error(bad) end, MoreCode. Because only one arm of the 'case' can succeed, the code after the case can be move into the successful arm: case Expr of Pat1 -> DoSomething, MoreCode; Pat2 -> erlang:error(bad) end. Thus, the 'case' is at the end of the function and it will no longer need a stack frame. However, the optimization in sys_core_fold would not be applied if there were more than one failing clause such as in this code: case Expr of Pat1 -> DoSomething, MoreCode; Pat2 -> erlang:error(bad); _ -> erlang:error(case_clause) end. Generalize the optimization to handle any number of failing clauses at the end of the case. Reported-by: bugs.erlang.org/browse/ERL-452
2017-07-28Merge pull request #1519 from erszcz/fix-typo-listner-to-listenerRaimo Niskanen
Fix a proliferated typo in ssl
2017-07-28Merge branch 'maint'Raimo Niskanen
2017-07-28Merge pull request #1520 from NOMORECOFFEE/fix_array_spec_typoRaimo Niskanen
array: fix spec typo
2017-07-27Merge branch 'maint'John Högberg
* maint: Updated OTP version Update release notes Update version numbers Fix doc for the 'quiet' option; it defaults to false asn1: Fix missing quotes of external encoding call Add a dedicated close function for TCP ports to prevent issues like ERL-430/448 Close TCP ports properly on send timeout erts: Add missing release note
2017-07-27Merge branch 'maint-20' into maintJohn Högberg
* maint-20: Updated OTP version Update release notes Update version numbers Fix doc for the 'quiet' option; it defaults to false asn1: Fix missing quotes of external encoding call Add a dedicated close function for TCP ports to prevent issues like ERL-430/448 Close TCP ports properly on send timeout erts: Add missing release note
2017-07-26Update release notesErlang/OTP
2017-07-26Update version numbersErlang/OTP
2017-07-26Merge branch 'sverker/asn1/missing-quotes/OTP-14519' into maint-20Erlang/OTP
* sverker/asn1/missing-quotes/OTP-14519: asn1: Fix missing quotes of external encoding call
2017-07-26Merge branch 'john/kernel/fix-disk-log-docs/OTP-14498' into maint-20Erlang/OTP
* john/kernel/fix-disk-log-docs/OTP-14498: Fix doc for the 'quiet' option; it defaults to false
2017-07-26Fix doc for the 'quiet' option; it defaults to falseJohn Högberg
2017-07-24Fix array spec typoВеселов Андрей
2017-07-24Fix a proliferated typoRadek Szymczyszyn
2017-07-21Merge branch 'maint'Raimo Niskanen
2017-07-21Merge pull request #1513 from nroi/maintRaimo Niskanen
Fix typo in httpc.xml: http -> httpc
2017-07-21Merge branch 'maint'Raimo Niskanen
2017-07-21Merge branch 'raimo/kernel/fix-spec-for-inet-get_rc-0/ERL-454' into maintRaimo Niskanen
* raimo/kernel/fix-spec-for-inet-get_rc-0/ERL-454: Improve spec and doc for inet:get_rc/0
2017-07-21Merge branch 'maint'Raimo Niskanen
2017-07-21Merge branch 'raimo/stdlib/stop-deprecated-warn-crypto-rand_bytes-1/ERL-459' ↵Raimo Niskanen
into maint * raimo/stdlib/stop-deprecated-warn-crypto-rand_bytes-1/ERL-459: Change crypto:rand_bytes/1 deprecated -> removed
2017-07-20Merge branch 'maint'Sverker Eriksson
2017-07-20asn1: Fix missing quotes of external encoding callSverker Eriksson
introduced by 8e4a9864385242b962ce7446f7daa4f58cfecca5.
2017-07-20Improve spec and doc for inet:get_rc/0Raimo Niskanen
2017-07-20Change crypto:rand_bytes/1 deprecated -> removedRaimo Niskanen
2017-07-17Fix testcases after removal of non-smp emulatorLukas Larsson
2017-07-17Merge pull request #1512 from indradhanush/bugfix/doc-genstatemdocRaimo Niskanen
Fix typo doc of init in gen_statem
2017-07-15Fix typo in httpc.xml: http -> httpcFabian Muscariello
2017-07-12crypto: Fix compile errors for make target 'valgrind'Sverker Eriksson
introduced in 03f3ec41f5468413235e3923a542a11cfd631089
2017-07-11Fix typo doc of init in gen_statemIndradhanush Gupta
2017-07-11kvakvs/disksup-path-cut/ERL-343/PR-1502/OTP-14513Lukas Larsson
Fixes ERL-343 parsing 'df' output by os_mon:disksup on POSIX and SUSv3 systems
2017-07-10Merge branch 'maint'Lukas Larsson
2017-07-10Fix typo in rand.xml: superseeded -> supersededLoïc Hoguin
2017-07-10Merge branch 'maint'Ingela Anderton Andin
2017-07-10Merge branch 'ingela/public_key/ssl/CRL-error-propagation/OTP-14236' into maintIngela Anderton Andin
* ingela/public_key/ssl/CRL-error-propagation/OTP-14236: ssl: Try to make asn1 decode errors of certificates as specific as possible ssl,public_key: Provide details for CRL check failiures when revokation state can not be determined ssl: Enhance error logging
2017-07-10Merge branch 'maint'Ingela Anderton Andin
2017-07-10Merge pull request #1504 from vances/issue-erl-443Ingela Andin
Log actual http status code of response. OTP-14510
2017-07-10josevalim/jv-op-stacktrace-entry/PR-1478/OTP-14508Lukas Larsson
Add stacktrace entries to BIF calls from emulator
2017-07-07ssl: Try to make asn1 decode errors of certificates as specific as possibleIngela Anderton Andin
2017-07-07ssl,public_key: Provide details for CRL check failiures when revokation ↵Ingela Anderton Andin
state can not be determined
2017-07-07ssl: Enhance error loggingIngela Anderton Andin
2017-07-07Merge branch 'maint'Hans Nilsson
2017-07-07crypto: test case for sign/verify ecdsa with sha256 etcHans Nilsson
2017-07-07crypto: test case for sign/verify dss with sha256 etcHans Nilsson
In OpenSSL version >= 1.0.1 the hash algos sha, sha224, sha256, sha384 and sha512 are supported. In 1.0.0 sha, sha224 and sha256 are supported In 0.9.8 sha is supported
2017-07-07public_key: Update for new crypto:sign and crypto:verify from PR838Hans Nilsson
2017-07-07public_key: doc for new sign/4 and verify/5Hans Nilsson
2017-07-07crypto: doc sign/5 and verify/6Hans Nilsson
2017-07-07crypto: tests for rsa sign/verify from PR838Hans Nilsson
2017-07-07crypto: Fix compatibility problems with openssl 1.0.0 cryptolibHans Nilsson
2017-07-07crypto: introduced preproc symbol HAS_EVP_PKEY_CTXHans Nilsson
2017-07-07crypto: pk verify with new function from PR838Hans Nilsson
Same comment as previous commit applies.
2017-07-07crypto: pk sign with new function from PR838Hans Nilsson
The function pkey_verify_nif handles pk signing with a general approach that is enabled by EVP api in OpenSSL 1.0.0 The rejected PR838 introduced that function and lots of other stuff so far neglected. It also made some different rsa padding methods possible (included). Since the crypto code base has changed significantly, it was an overhelming work to try a git merge. Therefore this commit is a manual move of the source code from the PR into current maint. This commit concentrates to use the new function compatible with the old functions. This includes some #if:s for different versions, compatibility code for 0.9.8. Lacking: test cases, exporting the more general erlang api, documentation...