diff --git a/libraries/ssh_crypto.rb b/libraries/ssh_crypto.rb index 38bfb60..ae40467 100644 --- a/libraries/ssh_crypto.rb +++ b/libraries/ssh_crypto.rb @@ -100,7 +100,7 @@ def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen when 'redhat', 'centos', 'oracle' case inspec.os[:release] when /^6\./ - kex = nil + kex = kex59 when /^7\./ kex = kex66 end @@ -153,7 +153,7 @@ def valid_macs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen when 'redhat', 'centos', 'oracle' case inspec.os[:release] when /^6\./ - macs = macs53 + macs = macs59 when /^7\./ macs = macs66 end