aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssl/src
diff options
context:
space:
mode:
authorPéter Dimitrov <[email protected]>2019-02-28 11:24:20 +0100
committerPéter Dimitrov <[email protected]>2019-02-28 13:07:04 +0100
commit14edeea28f4cc04b7bab8e946962a76fd839b73d (patch)
tree0c751d0d9b1b8c62c8be31a9955dd5fbf80cd5c6 /lib/ssl/src
parentd39f20f76837c7fc43c89166d991487622e09043 (diff)
downloadotp-14edeea28f4cc04b7bab8e946962a76fd839b73d.tar.gz
otp-14edeea28f4cc04b7bab8e946962a76fd839b73d.tar.bz2
otp-14edeea28f4cc04b7bab8e946962a76fd839b73d.zip
ssl: Fix type spec for handshake_history()
handshake_history() was specified as {[binary()], [binary[]]}, although its real type was {iodata(), iodata()}, dialyzer did not give a warning until a new function matched out an element of handshake_history and used it as input data for crypto:hash/2. Change-Id: I60660e7296a52bf69bd7198a4cffee8338907726
Diffstat (limited to 'lib/ssl/src')
-rw-r--r--lib/ssl/src/ssl_handshake.erl2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index de4f26f759..260f603e90 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -39,7 +39,7 @@
-type oid() :: tuple().
-type public_key_params() :: #'Dss-Parms'{} | {namedCurve, oid()} | #'ECParameters'{} | term().
-type public_key_info() :: {oid(), #'RSAPublicKey'{} | integer() | #'ECPoint'{}, public_key_params()}.
--type ssl_handshake_history() :: {[binary()], [binary()]}.
+-type ssl_handshake_history() :: {iodata(), iodata()}.
-type ssl_handshake() :: #server_hello{} | #server_hello_done{} | #certificate{} | #certificate_request{} |
#client_key_exchange{} | #finished{} | #certificate_verify{} |