Skip to content

Commit

Permalink
ubuntu versions
Browse files Browse the repository at this point in the history
Add recent ubuntu versions to get the correct algorithms list.
  • Loading branch information
micheelengronne authored May 5, 2020
1 parent 7f15d47 commit abf8286
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions libraries/ssh_crypto.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def valid_ciphers # rubocop:disable Metrics/CyclomaticComplexity, Metrics/Method
case inspec.os[:release]
when '12.04'
ciphers = ciphers53
when '14.04', '15.10', '16.04', '18.04'
when '14.04', '15.10', '16.04', '18.04', '18.10', '19.04', '19.10'
ciphers = ciphers66
end
when 'debian'
Expand Down Expand Up @@ -85,7 +85,7 @@ def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen
case inspec.os[:release]
when '12.04'
kex = kex59
when '14.04', '15.10', '16.04', '18.04'
when '14.04', '15.10', '16.04', '18.04', '18.10', '19.04', '19.10'
kex = kex66
end
when 'debian'
Expand Down Expand Up @@ -139,7 +139,7 @@ def valid_macs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen
case inspec.os[:release]
when '12.04'
macs = macs59
when '14.04', '15.10', '16.04', '18.04'
when '14.04', '15.10', '16.04', '18.04', '18.10', '19.04', '19.10'
macs = macs66
end
when 'debian'
Expand Down Expand Up @@ -236,7 +236,7 @@ def valid_algorithms # rubocop:disable Metrics/CyclomaticComplexity, Metrics/Met
case inspec.os[:release]
when '12.04'
alg = alg53
when '14.04', '15.10', '16.04', '18.04'
when '14.04', '15.10', '16.04', '18.04', '18.10', '19.04', '19.10'
alg = alg66
end
when 'debian'
Expand Down

0 comments on commit abf8286

Please sign in to comment.