summaryrefslogtreecommitdiff
path: root/lib/ssl/src/dtls_record.erl
diff options
context:
space:
mode:
authorKiko Fernandez-Reyes <kiko@erlang.org>2023-04-03 15:29:59 +0200
committerKiko Fernandez-Reyes <kiko@erlang.org>2023-04-03 15:29:59 +0200
commit8d3f148b53a53cdc7bc23509dfdcb68cc28cbba3 (patch)
tree0a8529f4e45b25e1eab79e9b49e3f128d0983e63 /lib/ssl/src/dtls_record.erl
parent4aa2cf5288276602efa43d8244e8f55a816f0c04 (diff)
downloaderlang-8d3f148b53a53cdc7bc23509dfdcb68cc28cbba3.tar.gz
ssl: replace macro name
Diffstat (limited to 'lib/ssl/src/dtls_record.erl')
-rw-r--r--lib/ssl/src/dtls_record.erl8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/ssl/src/dtls_record.erl b/lib/ssl/src/dtls_record.erl
index aacb7711f4..0278c34b7c 100644
--- a/lib/ssl/src/dtls_record.erl
+++ b/lib/ssl/src/dtls_record.erl
@@ -283,7 +283,7 @@ protocol_version(?DTLS_1_0) ->
%%
%% Description: Lowes protocol version of two given versions
%%--------------------------------------------------------------------
-lowest_protocol_version(Version1, Version2) when ?DTLS_L(Version1, Version2) ->
+lowest_protocol_version(Version1, Version2) when ?DTLS_LT(Version1, Version2) ->
Version1;
lowest_protocol_version(_, Version2) ->
Version2.
@@ -314,7 +314,7 @@ check_protocol_version([Ver | Versions], Fun) -> lists:foldl(Fun, Ver, Versions)
%% Description: Highest protocol version of two given versions
%%--------------------------------------------------------------------
-highest_protocol_version(Version1, Version2) when ?DTLS_G(Version1, Version2) ->
+highest_protocol_version(Version1, Version2) when ?DTLS_GT(Version1, Version2) ->
Version1;
highest_protocol_version(_, Version2) ->
Version2.
@@ -324,7 +324,7 @@ highest_protocol_version(_, Version2) ->
%%
%% Description: Is V1 > V2
%%--------------------------------------------------------------------
-is_higher(V1, V2) when ?DTLS_G(V1, V2) ->
+is_higher(V1, V2) when ?DTLS_GT(V1, V2) ->
true;
is_higher(_, _) ->
false.
@@ -385,7 +385,7 @@ is_acceptable_version(Version, Versions) ->
-spec hello_version(ssl_record:ssl_version(), [ssl_record:ssl_version()]) -> ssl_record:ssl_version().
hello_version(Version, Versions) ->
case dtls_v1:corresponding_tls_version(Version) of
- TLSVersion when ?TLS_GE(TLSVersion, ?TLS_1_2) ->
+ TLSVersion when ?TLS_GTE(TLSVersion, ?TLS_1_2) ->
Version;
_ ->
lowest_protocol_version(Versions)