mirror of
https://github.com/nmap/nmap.git
synced 2026-06-25 18:48:19 +00:00
Adds missing documentation of login function.
This commit is contained in:
parent
0622eb4d03
commit
db13b65779
1 changed files with 11 additions and 0 deletions
|
|
@ -584,6 +584,17 @@ quit = function(socket)
|
|||
socket:close()
|
||||
end
|
||||
|
||||
-- Attempts to authenticate with the SMTP server. The supported authentication
|
||||
-- mechanisms are: LOGIN, PLAIN, CRAM-MD5, DIGEST-MD5 and NTLM.
|
||||
--
|
||||
-- @param socket connected to server.
|
||||
-- @param username SMTP username.
|
||||
-- @param password SMTP password.
|
||||
-- @param mech Authentication mechanism.
|
||||
-- @return true on success, or false on failures.
|
||||
-- @return response returned by the SMTP server on success, or an
|
||||
-- error message on failures.
|
||||
|
||||
login = function(socket, username, password, mech)
|
||||
assert(mech == "LOGIN" or mech == "PLAIN" or mech == "CRAM-MD5"
|
||||
or mech == "DIGEST-MD5" or mech == "NTLM",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue