File 0189-Correct-type-specification-in-ssl-prf-5.patch of Package erlang
From 1e4b7915dd529214c9ab61687cd31f9d4f7425b4 Mon Sep 17 00:00:00 2001
From: Vance Shipley <vances@sigscale.org>
Date: Mon, 10 Jul 2017 10:46:10 +0530
Subject: [PATCH] Correct type specification in ssl:prf/5
Current implementation expects Seed to be a list.
Correct type specification to match.
---
lib/ssl/src/ssl.erl | 2 +-
lib/ssl/src/ssl_connection.erl | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/lib/ssl/src/ssl.erl b/lib/ssl/src/ssl.erl
index 75eb308ba..801aa8f25 100644
--- a/lib/ssl/src/ssl.erl
+++ b/lib/ssl/src/ssl.erl
@@ -569,7 +569,7 @@ renegotiate(#sslsocket{pid = {Listen,_}}) when is_port(Listen) ->
%%--------------------------------------------------------------------
-spec prf(#sslsocket{}, binary() | 'master_secret', binary(),
- binary() | prf_random(), non_neg_integer()) ->
+ [binary() | prf_random()], non_neg_integer()) ->
{ok, binary()} | {error, reason()}.
%%
%% Description: use a ssl sessions TLS PRF to generate key material
diff --git a/lib/ssl/src/ssl_connection.erl b/lib/ssl/src/ssl_connection.erl
index fb87662c7..f3fbe254f 100644
--- a/lib/ssl/src/ssl_connection.erl
+++ b/lib/ssl/src/ssl_connection.erl
@@ -264,7 +264,7 @@ renegotiation(ConnectionPid) ->
%%--------------------------------------------------------------------
-spec prf(pid(), binary() | 'master_secret', binary(),
- binary() | ssl:prf_random(), non_neg_integer()) ->
+ [binary() | ssl:prf_random()], non_neg_integer()) ->
{ok, binary()} | {error, reason()} | {'EXIT', term()}.
%%
%% Description: use a ssl sessions TLS PRF to generate key material
--
2.14.0