Merge pull request #1331 from laf/issue-1287

Added debugging output of invalid snmpv3 args
This commit is contained in:
Daniel Preussker
2015-06-24 17:34:14 +00:00
+6
View File
@@ -114,6 +114,9 @@ if (!empty($argv[1]))
elseif (preg_match ('/^(sha|md5)$/i', $arg))
{
$v3['authalgo'] = $arg;
} else {
echo "Invalid argument: " . $arg . "\n" ;
return ;
}
}
@@ -147,6 +150,9 @@ if (!empty($argv[1]))
elseif (preg_match ('/^(aes|des)$/i', $arg))
{
$v3['cryptoalgo'] = $arg;
} else {
echo "Invalid argument: " . $arg . "\n" ;
return ;
}
}