diff options
author | Hans Nilsson <[email protected]> | 2017-03-16 14:42:30 +0100 |
---|---|---|
committer | Hans Nilsson <[email protected]> | 2017-04-07 10:19:56 +0200 |
commit | 6ff33b1548a24d9f195c27a1ee5bcfcdb1b892d8 (patch) | |
tree | 977af8935ff6be8a4f9072c89380b46ac7e463cd | |
parent | 2f212c1a3e8bc3070b51dfc5607f30e501ba24ea (diff) | |
download | otp-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]}]}
-rw-r--r-- | lib/ssh/src/ssh_options.erl | 1 |
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. |