aboutsummaryrefslogtreecommitdiffstats
path: root/lib/ssh/src
diff options
context:
space:
mode:
authorHans Nilsson <[email protected]>2017-03-16 14:42:30 +0100
committerHans Nilsson <[email protected]>2017-04-07 10:19:56 +0200
commit6ff33b1548a24d9f195c27a1ee5bcfcdb1b892d8 (patch)
tree977af8935ff6be8a4f9072c89380b46ac7e463cd /lib/ssh/src
parent2f212c1a3e8bc3070b51dfc5607f30e501ba24ea (diff)
downloadotp-6ff33b1548a24d9f195c27a1ee5bcfcdb1b892d8.tar.gz
otp-6ff33b1548a24d9f195c27a1ee5bcfcdb1b892d8.tar.bz2
otp-6ff33b1548a24d9f195c27a1ee5bcfcdb1b892d8.zip
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]}]}
Diffstat (limited to 'lib/ssh/src')
-rw-r--r--lib/ssh/src/ssh_options.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/ssh/src/ssh_options.erl b/lib/ssh/src/ssh_options.erl
index 6a2e7ce696..cb3f63103c 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.