aboutsummaryrefslogtreecommitdiff
path: root/tests/sshhelp.pm
diff options
context:
space:
mode:
authorMarc Hoersken <info@marc-hoersken.de>2018-11-19 21:05:57 +0100
committerMarc Hoersken <info@marc-hoersken.de>2019-05-22 19:54:05 +0200
commit081d374f4949b7fabfa76a0fb14daa02d47b5050 (patch)
tree41b3843fe4982b088d99b708f18224f218f85177 /tests/sshhelp.pm
parenta57e4786b710b51fe463420f36f1d2a61a029f36 (diff)
tests: add support to test against OpenSSH for Windows
Testing against OpenSSH for Windows requires v7.7.0.0 or newer due to the use of AllowUsers and DenyUsers. For more info see: https://github.com/PowerShell/Win32-OpenSSH/wiki/sshd_config
Diffstat (limited to 'tests/sshhelp.pm')
-rw-r--r--tests/sshhelp.pm10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/sshhelp.pm b/tests/sshhelp.pm
index 7345eb300..47ea2324c 100644
--- a/tests/sshhelp.pm
+++ b/tests/sshhelp.pm
@@ -430,6 +430,16 @@ sub sshversioninfo {
$error = undef;
last;
}
+ if($tmpstr =~ /OpenSSH[_-]for[_-]Windows[_-](\d+)\.(\d+)(\.(\d+))*/i) {
+ $major = $1;
+ $minor = $2;
+ $patch = $4?$4:0;
+ $sshid = 'OpenSSH-Windows';
+ $versnum = (100*$major) + (10*$minor) + $patch;
+ $versstr = "$sshid $major.$minor.$patch";
+ $error = undef;
+ last;
+ }
if($tmpstr =~ /Sun[_-]SSH[_-](\d+)\.(\d+)(\.(\d+))*/i) {
$major = $1;
$minor = $2;