File 2385-ssh-enable-none-as-a-secret-accepted-value-in-negoti.patch of Package erlang

From 6ff33b1548a24d9f195c27a1ee5bcfcdb1b892d8 Mon Sep 17 00:00:00 2001
From: Hans Nilsson <hans@erlang.org>
Date: Thu, 16 Mar 2017 14:42:30 +0100
Subject: [PATCH 05/13] ssh: enable 'none' as a secret accepted value in
 negotiation

This is for testing only to disable e.g. encryption/decryption is measurements.  The value must be explicitly enabled like {preferred_algorithms,[{cipher,[none]}]}
---
 lib/ssh/src/ssh_options.erl | 1 +
 1 file changed, 1 insertion(+)

diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl
index 6a2e7ce69..cb3f63103 100644
--- a/lib/ssh/src/ssh_options.erl
+++ b/lib/ssh/src/ssh_options.erl
@@ -882,6 +882,7 @@ handle_pref_alg(Key, Vs, _) ->
 chk_alg_vs(OptKey, Values, SupportedValues) ->
     case (Values -- SupportedValues) of
 	[] -> Values;
+        [none] -> [none];                       % for testing only
 	Bad -> error_in_check({OptKey,Bad}, "Unsupported value(s) found")
     end.
 
-- 
2.12.2

openSUSE Build Service is sponsored by