KEx availability depends on OpenSSL support

bug/bundler_fix
Christopher Moore 2016-01-09 13:45:23 +00:00
parent 77cd28c136
commit 888be6133c
No known key found for this signature in database
GPG Key ID: 6C6D2F8B4E4EB0F8
1 changed files with 3 additions and 1 deletions

View File

@ -10,7 +10,9 @@ module Net::SSH::Transport
MAP = {
'diffie-hellman-group-exchange-sha1' => DiffieHellmanGroupExchangeSHA1,
'diffie-hellman-group1-sha1' => DiffieHellmanGroup1SHA1,
'diffie-hellman-group-exchange-sha256' => DiffieHellmanGroupExchangeSHA256
}
if defined?(DiffieHellmanGroupExchangeSHA256)
MAP['diffie-hellman-group-exchange-sha256'] = DiffieHellmanGroupExchangeSHA256
end
end
end