1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-09 14:11:29 +00:00

Fix some arg handling for ssh-publickey-acceptance

This commit is contained in:
dmiller
2017-09-11 15:17:51 +00:00
parent e8b73078fd
commit 30de1639eb
4 changed files with 4 additions and 4 deletions

View File

@@ -152,14 +152,14 @@ end
--
-- @param publickey An SSH public key file.
-- @return true on success or false on error.
-- @return publick key data on success or error code on error.
-- @return public key data on success or error code on error.
function SSHConnection:read_publickey (publickey)
local status, result = pcall(libssh2.read_publickey, publickey)
return status, result
end
---
-- Attempts authentication with publick key
-- Attempts authentication with public key
--
-- @param username A username to authenticate as.
-- @param key Base64 decrypted public key.