aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2019-01-09 14:22:21 +0100
committerPéter Dimitrov <[email protected]>2019-01-11 09:59:12 +0100
commit757f2d4c1e3313b1a793549355c2bb3104635344 (patch)
tree3752e36a094e5ab16cfb0ca975c6a13de4e7ee03 /lib
parentdc9ec91e8ba3e8bdae74c7090a9969211e355f07 (diff)
downloadotp-757f2d4c1e3313b1a793549355c2bb3104635344.tar.gz
otp-757f2d4c1e3313b1a793549355c2bb3104635344.tar.bz2
otp-757f2d4c1e3313b1a793549355c2bb3104635344.zip
ssl: Fix dialyzer warnings
Change-Id: I9269825c833d1461369828a9228f384ccf2543a9
Diffstat (limited to 'lib')
-rw-r--r--lib/ssl/src/tls_connection_1_3.erl6
-rw-r--r--lib/ssl/src/tls_handshake.erl3
-rw-r--r--lib/ssl/src/tls_handshake_1_3.hrl7
3 files changed, 12 insertions, 4 deletions
diff --git a/lib/ssl/src/tls_connection_1_3.erl b/lib/ssl/src/tls_connection_1_3.erl
index ceaf6e8bca..f5f91cedd7 100644
--- a/lib/ssl/src/tls_connection_1_3.erl
+++ b/lib/ssl/src/tls_connection_1_3.erl
@@ -164,9 +164,9 @@ negotiated(internal,
#alert{} = Alert ->
ssl_connection:handle_own_alert(Alert, {3,4}, negotiated, State0);
M ->
- %% update connection_states with cipher
- State = update_state(State0, M),
- {next_state, wait_flight2, State, [{next_event, internal, M}]}
+ %% TODO: implement update_state
+ %% State = update_state(State0, M),
+ {next_state, wait_flight2, State0, [{next_event, internal, M}]}
end.
diff --git a/lib/ssl/src/tls_handshake.erl b/lib/ssl/src/tls_handshake.erl
index 3766bc1302..f0bbd0f94f 100644
--- a/lib/ssl/src/tls_handshake.erl
+++ b/lib/ssl/src/tls_handshake.erl
@@ -232,7 +232,8 @@ hello(#client_hello{client_version = ClientVersion,
%%--------------------------------------------------------------------
%%--------------------------------------------------------------------
--spec encode_handshake(tls_handshake(), tls_record:tls_version()) -> iolist().
+-spec encode_handshake(tls_handshake() | tls_handshake_1_3:tls_handshake_1_3(),
+ tls_record:tls_version()) -> iolist().
%%
%% Description: Encode a handshake packet
%%--------------------------------------------------------------------
diff --git a/lib/ssl/src/tls_handshake_1_3.hrl b/lib/ssl/src/tls_handshake_1_3.hrl
index afe985755c..7ae1b93e1c 100644
--- a/lib/ssl/src/tls_handshake_1_3.hrl
+++ b/lib/ssl/src/tls_handshake_1_3.hrl
@@ -228,4 +228,11 @@
request_update
}).
+-type tls_handshake_1_3() :: #encrypted_extensions{} |
+ #certificate_request_1_3{} |
+ #certificate_1_3{} |
+ #certificate_verify_1_3{}.
+
+-export_type([tls_handshake_1_3/0]).
+
-endif. % -ifdef(tls_handshake_1_3).