Skip to content

Commit f84dfa8

Browse files
committed
ssl: Correct EC handling
1 parent b365556 commit f84dfa8

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

lib/ssl/src/ssl_cipher.erl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1165,7 +1165,6 @@ dss_dhe_suites(Ciphers) ->
11651165
%% Certs key is an ECC key
11661166
ec_keyed_suites(Ciphers) ->
11671167
filter_kex(Ciphers, fun (ecdh_ecdsa) -> true;
1168-
(ecdh_rsa) -> true;
11691168
(ecdhe_ecdsa) -> true;
11701169
(_) -> false
11711170
end).

lib/ssl/src/ssl_handshake.erl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3894,8 +3894,7 @@ cert_curve(_, _, no_suite) ->
38943894
{no_curve, no_suite};
38953895
cert_curve(Cert, ECCCurve0, CipherSuite) ->
38963896
case ssl_cipher_format:suite_bin_to_map(CipherSuite) of
3897-
#{key_exchange := Kex} when Kex == ecdh_ecdsa;
3898-
Kex == ecdh_rsa ->
3897+
#{key_exchange := Kex} when Kex == ecdh_ecdsa ->
38993898
OtpCert = public_key:pkix_decode_cert(Cert, otp),
39003899
TBSCert = OtpCert#'OTPCertificate'.tbsCertificate,
39013900
#'OTPSubjectPublicKeyInfo'{algorithm = AlgInfo}

0 commit comments

Comments
 (0)