Skip to content

Commit 239de93

Browse files
authored
Merge pull request #173 from mesaguy/master
Add support for Archlinux
2 parents 00cb4c7 + 1b37cff commit 239de93

1 file changed

Lines changed: 6 additions & 4 deletions

File tree

libraries/ssh_crypto.rb

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def valid_ciphers # rubocop:disable Metrics/CyclomaticComplexity
4747
when /^7\./, /^8\./
4848
ciphers = ciphers66
4949
end
50-
when 'amazon', 'fedora', 'alpine'
50+
when 'amazon', 'fedora', 'alpine', 'arch'
5151
ciphers = ciphers66
5252
when 'opensuse'
5353
case inspec.os[:release]
@@ -100,6 +100,8 @@ def valid_kexs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/AbcSize,
100100
kex = kex66
101101
end
102102
# https://pkgs.alpinelinux.org/packages?name=openssh
103+
when 'arch'
104+
kex = kex80
103105
when 'alpine'
104106
kex = inspec.os[:release].split('.')[1] >= '10' ? kex80 : kex66
105107
when 'amazon'
@@ -157,7 +159,7 @@ def valid_macs # rubocop:disable Metrics/CyclomaticComplexity, Metrics/MethodLen
157159
when /^7\./, /^8\./
158160
macs = macs66
159161
end
160-
when 'amazon', 'fedora', 'alpine'
162+
when 'amazon', 'fedora', 'alpine', 'arch'
161163
macs = macs66
162164
when 'opensuse'
163165
case inspec.os[:release]
@@ -211,7 +213,7 @@ def valid_privseparation # rubocop:disable Metrics/CyclomaticComplexity
211213
when /^18\./
212214
ps = ps75
213215
end
214-
when 'fedora', 'alpine'
216+
when 'fedora', 'alpine', 'arch'
215217
ps = ps75
216218
end
217219

@@ -242,7 +244,7 @@ def valid_algorithms # rubocop:disable Metrics/CyclomaticComplexity
242244
when /^7\./
243245
alg = alg66
244246
end
245-
when 'amazon', 'fedora', 'alpine'
247+
when 'amazon', 'fedora', 'alpine', 'arch'
246248
alg = alg66
247249
when 'opensuse'
248250
case inspec.os[:release]

0 commit comments

Comments
 (0)