File 3718-ssl-Adjust-for-removed-badkey-exception.patch of Package erlang

From 5bc3cf97486f76fc3e80e2046bf6a80a057372d2 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Fri, 18 Mar 2022 14:35:50 +0100
Subject: [PATCH 8/8] ssl: Adjust for removed badkey exception

crypto:sign does not deliver the badkey anymore.
---
 lib/ssl/src/ssl_handshake.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/ssl/src/ssl_handshake.erl b/lib/ssl/src/ssl_handshake.erl
index 837f7c0249..a109e30f18 100644
--- a/lib/ssl/src/ssl_handshake.erl
+++ b/lib/ssl/src/ssl_handshake.erl
@@ -2081,7 +2081,7 @@ digitally_signed(Version, Msg, HashAlgo, PrivateKey, SignAlgo) ->
 	Signature ->
 	    Signature
     catch
-	error:badkey->
+	error:_ ->
 	    throw(?ALERT_REC(?FATAL, ?HANDSHAKE_FAILURE, bad_key(PrivateKey)))
     end.
 
-- 
2.34.1

openSUSE Build Service is sponsored by