aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src/ssl.erl
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2018-09-05 12:08:47 +0200
committerPéter Dimitrov <[email protected]>2018-09-06 10:53:47 +0200
commit29e7204afed62a5f3aca5750a069822f0c9a1bcc (patch)
treeb18894f0c3699b8f93a5e1c95fde065718884e6f /lib/ssl/src/ssl.erl
parent6d5cac99b366e30bb95473f4f99ec80df410f297 (diff)
downloadotp-29e7204afed62a5f3aca5750a069822f0c9a1bcc.tar.gz
otp-29e7204afed62a5f3aca5750a069822f0c9a1bcc.tar.bz2
otp-29e7204afed62a5f3aca5750a069822f0c9a1bcc.zip
ssl: Use 'HighestVersion' instead of extra function call
Change-Id: I7521cd4e83f881d3caeae8faf2dd8108db15aa7e
Diffstat (limited to 'lib/ssl/src/ssl.erl')
-rw-r--r--lib/ssl/src/ssl.erl21
1 files changed, 11 insertions, 10 deletions
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl
index 28b0564cac..ef9aac34bf 100644
--- a/lib/ssl/src/ssl.erl
+++ b/lib/ssl/src/ssl.erl
@@ -958,17 +958,18 @@ handle_options(Opts0, Role, Host) ->
psk_identity = handle_option(psk_identity, Opts, undefined),
srp_identity = handle_option(srp_identity, Opts, undefined),
ciphers = handle_cipher_option(proplists:get_value(ciphers, Opts, []),
- RecordCb:highest_protocol_version(Versions)),
+ HighestVersion),
eccs = handle_eccs_option(proplists:get_value(eccs, Opts, eccs()),
- RecordCb:highest_protocol_version(Versions)),
- signature_algs = handle_hashsigns_option(
- proplists:get_value(
- signature_algs,
- Opts,
- default_option_role(server,
- tls_v1:default_signature_algs(Versions),
- Role)),
- tls_version(RecordCb:highest_protocol_version(Versions))),
+ HighestVersion),
+ signature_algs =
+ handle_hashsigns_option(
+ proplists:get_value(
+ signature_algs,
+ Opts,
+ default_option_role(server,
+ tls_v1:default_signature_algs(HighestVersion),
+ Role)),
+ tls_version(HighestVersion)),
signature_algs_cert =
handle_signature_algorithms_option(
proplists:get_value(