Skip to content

Commit f191792

Browse files
authored
Merge pull request #208 from dev-sec/stream_fix
fix detection for centos stream
2 parents 160feb6 + 6dd86be commit f191792

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

libraries/ssh_crypto.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def valid_ciphers
4646
case inspec.os[:release]
4747
when /^6\./
4848
ciphers = ciphers53
49-
when /^7\./, /^8\./, /^9\./
49+
when /^7.*/, /^8.*/, /^9.*/
5050
ciphers = ciphers66
5151
end
5252
when 'amazon', 'fedora', 'alpine', 'arch'
@@ -107,7 +107,7 @@ def valid_kexs
107107
kex = nil
108108
when /^7\./
109109
kex = kex66
110-
when /^8\./, /^9\./
110+
when /^8.*/, /^9.*/
111111
kex = kex80
112112
end
113113
# https://pkgs.alpinelinux.org/packages?name=openssh
@@ -167,7 +167,7 @@ def valid_macs
167167
# Because extended support (EUS) updates for 6.x minor releases is no longer available,
168168
# only the settings available for the supported (latest) 6.x release are recommended.
169169
macs = macs53_el65
170-
when /^7\./, /^8\./, /^9/
170+
when /^7.*/, /^8.*/, /^9.*/
171171
macs = macs66
172172
end
173173
when 'amazon', 'fedora', 'alpine', 'arch'
@@ -216,7 +216,7 @@ def valid_privseparation
216216
ps = ps53
217217
when /^7\./
218218
ps = ps59
219-
when /^8\./, /^9\./
219+
when /^8.*/, /^9.*/
220220
ps = ps75
221221
end
222222
when 'ubuntu'
@@ -252,7 +252,7 @@ def valid_algorithms
252252
case inspec.os[:release]
253253
when /^6\./
254254
alg = alg53
255-
when /^7\./, /^8\./, /^9\./
255+
when /^7.*/, /^8.*/, /^9.*/
256256
alg = alg66
257257
end
258258
when 'amazon', 'fedora', 'alpine', 'arch'

0 commit comments

Comments
 (0)