diff --git a/libraries/ssh_crypto.rb b/libraries/ssh_crypto.rb index a8d534b..a91790a 100644 --- a/libraries/ssh_crypto.rb +++ b/libraries/ssh_crypto.rb @@ -28,7 +28,7 @@ def valid_ciphers ciphers = ciphers53 # adjust ciphers based on OS + release - case inspec.os[:family] + case inspec.os[:name] when 'ubuntu' case inspec.os[:release] when '12.04' @@ -62,7 +62,7 @@ def valid_kexs kex = kex59 # adjust KEXs based on OS + release - case inspec.os[:family] + case inspec.os[:name] when 'ubuntu' case inspec.os[:release] when '12.04' @@ -99,7 +99,7 @@ def valid_macs macs = macs59 # adjust MACs based on OS + release - case inspec.os[:family] + case inspec.os[:name] when 'ubuntu' case inspec.os[:release] when '12.04' @@ -137,7 +137,7 @@ def valid_privseparation # debian 7.x and newer has ssh 5.9+ # ubuntu 12.04 and newer has ssh 5.9+ - case inspec.os[:family] + case inspec.os[:name] when 'debian' case inspec.os[:release] when /6\./