summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Klishin <michael@clojurewerkz.org>2021-04-19 14:11:19 +0300
committerMichael Klishin <michael@clojurewerkz.org>2021-04-19 14:11:19 +0300
commit1d794a5f95a9893168aa41418a901d9ffec6bfb0 (patch)
tree680a7a4889d6fabc82ccc93f2cd4d0f26a260a61
parent15875017337efb7affa862034c3389bd5b3aa6b2 (diff)
downloadrabbitmq-server-git-1d794a5f95a9893168aa41418a901d9ffec6bfb0.tar.gz
Drop some Erlang 21-specific code
We no longer support it even in v3.8.x.
-rw-r--r--deps/rabbit/src/rabbit_ssl.erl23
1 files changed, 0 insertions, 23 deletions
diff --git a/deps/rabbit/src/rabbit_ssl.erl b/deps/rabbit/src/rabbit_ssl.erl
index 44dbdada7b..9570059373 100644
--- a/deps/rabbit/src/rabbit_ssl.erl
+++ b/deps/rabbit/src/rabbit_ssl.erl
@@ -73,34 +73,11 @@ cipher_suites_openssl(Mode, Version) ->
format_cipher_erlang(Cipher) ->
- case erlang:function_exported(ssl_cipher_format, suite_map_to_bin, 1) of
- true ->
- format_cipher_erlang22(Cipher);
- false ->
- format_cipher_erlang21(Cipher)
- end.
-
-format_cipher_erlang22(Cipher) ->
ssl_cipher_format:suite_legacy(ssl_cipher_format:suite_map_to_bin(Cipher)).
-format_cipher_erlang21(Cipher) ->
- ssl_cipher_format:erl_suite_definition(ssl_cipher_format:suite(Cipher)).
-
-
format_cipher_openssl(Cipher) ->
- case erlang:function_exported(ssl_cipher_format, suite_map_to_bin, 1) of
- true ->
- format_cipher_openssl22(Cipher);
- false ->
- format_cipher_openssl21(Cipher)
- end.
-
-format_cipher_openssl22(Cipher) ->
ssl_cipher_format:suite_map_to_openssl_str(Cipher).
-format_cipher_openssl21(Cipher) ->
- ssl_cipher_format:suite_to_str(Cipher).
-
-spec get_highest_protocol_version() -> tls_record:tls_atom_version().
get_highest_protocol_version() ->
tls_record:protocol_version(