1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-02-03 11:12:13 +00:00

Add hotfix for unhandled cipher algorithms.

Obtained from:	Ingela Andin (ingela.andin@gmail.com) on erlang-questions
This commit is contained in:
Jimmy Olgeni 2015-06-09 12:17:59 +00:00
parent a2ebd34deb
commit 2ea8d0de94
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=388914
2 changed files with 23 additions and 0 deletions

View File

@ -3,6 +3,7 @@
PORTNAME= erlang
PORTVERSION= 17.5.6
PORTREVISION= 1
PORTEPOCH= 3
CATEGORIES= lang parallel java
MASTER_SITES= http://www.erlang.org/download/:erlangorg \

View File

@ -0,0 +1,22 @@
--- lib/ssl/src/ssl_cipher.erl.orig 2015-03-31 12:32:52 UTC
+++ lib/ssl/src/ssl_cipher.erl
@@ -1209,7 +1209,8 @@ hash_algorithm(?SHA) -> sha;
hash_algorithm(?SHA224) -> sha224;
hash_algorithm(?SHA256) -> sha256;
hash_algorithm(?SHA384) -> sha384;
-hash_algorithm(?SHA512) -> sha512.
+hash_algorithm(?SHA512) -> sha512;
+hash_algorithm(Other) when is_integer(Other) andalso ((Other >= 224) and (Other =< 255)) -> Other.
sign_algorithm(anon) -> ?ANON;
sign_algorithm(rsa) -> ?RSA;
@@ -1218,7 +1219,8 @@ sign_algorithm(ecdsa) -> ?ECDSA;
sign_algorithm(?ANON) -> anon;
sign_algorithm(?RSA) -> rsa;
sign_algorithm(?DSA) -> dsa;
-sign_algorithm(?ECDSA) -> ecdsa.
+sign_algorithm(?ECDSA) -> ecdsa;
+sign_algorithm(Other) when is_integer(Other) andalso ((Other >= 224) and (Other =< 255)) -> Other.
hash_size(null) ->
0;