diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-05-11 12:38:42 +0200 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2020-05-11 12:38:42 +0200 |
| commit | c1fea1a9d51bf48cbcc6facaa359b211fcd6d56c (patch) | |
| tree | 1f3b9c3ecc6588a75518fdad9374ddb6ef543ace /src | |
| parent | d842299783ddf5f05f399de13f352f278260f8b5 (diff) | |
| download | rabbitmq-server-git-c1fea1a9d51bf48cbcc6facaa359b211fcd6d56c.tar.gz | |
rabbit_ssl: Fix return value of `get_highest_protocol_version/0`
The result of this function is passed to `ssl:cipher_suites/2` which
expects the atom-based SSL/TLS versions.
Reported by Dialyzer.
Diffstat (limited to 'src')
| -rw-r--r-- | src/rabbit_ssl.erl | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/rabbit_ssl.erl b/src/rabbit_ssl.erl index f1a8469ac0..6190e0d9ec 100644 --- a/src/rabbit_ssl.erl +++ b/src/rabbit_ssl.erl @@ -108,9 +108,10 @@ format_cipher_openssl22(Cipher) -> format_cipher_openssl21(Cipher) -> ssl_cipher_format:suite_to_str(Cipher). --spec get_highest_protocol_version() -> tls_record:tls_version(). +-spec get_highest_protocol_version() -> tls_record:tls_atom_version(). get_highest_protocol_version() -> - tls_record:highest_protocol_version([]). + tls_record:protocol_version( + tls_record:highest_protocol_version([])). %%-------------------------------------------------------------------------- %% High-level functions used by reader |
