aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl_handshake.erl
diff options
context:
space:
mode:
authorIngela Anderton Andin <[email protected]>2018-07-05 10:40:13 +0200
committerIngela Anderton Andin <[email protected]>2018-07-10 16:22:52 +0200
commite97a21e2928b34f04777d1f8e6d56f92c938c76a (patch)
tree7ab785dab229271fdaf58758ccd6c1d0e4449dcc /lib/ssl/src/ssl_handshake.erl
parentbaee0f8436aaa5a3d6c15e917cac0515cbd8b451 (diff)
downloadotp-e97a21e2928b34f04777d1f8e6d56f92c938c76a.tar.gz
otp-e97a21e2928b34f04777d1f8e6d56f92c938c76a.tar.bz2
otp-e97a21e2928b34f04777d1f8e6d56f92c938c76a.zip
ssl: Correct connection_information on ECC-curves
Diffstat (limited to 'lib/ssl/src/ssl_handshake.erl')
-rw-r--r--lib/ssl/src/ssl_handshake.erl8
1 files changed, 1 insertions, 7 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index 43d992c2ec..49fb76118a 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -2346,13 +2346,7 @@ cert_curve(Cert, ECCCurve0, CipherSuite) ->
#'OTPSubjectPublicKeyInfo'{algorithm = AlgInfo}
= TBSCert#'OTPTBSCertificate'.subjectPublicKeyInfo,
{namedCurve, Oid} = AlgInfo#'PublicKeyAlgorithm'.parameters,
- try pubkey_cert_records:namedCurves(Oid) of
- Curve ->
- {{named_curve, Curve}, CipherSuite}
- catch
- _:_ ->
- {no_curve, no_suite}
- end;
+ {{namedCurve, Oid}, CipherSuite};
_ ->
{ECCCurve0, CipherSuite}
end.