diff --git a/nselib/creds.lua b/nselib/creds.lua index fc6078a0e..6fac4a136 100644 --- a/nselib/creds.lua +++ b/nselib/creds.lua @@ -104,7 +104,8 @@ local table = require "table" _ENV = stdnse.module("creds", stdnse.seeall) --- Table containing the different account states +--- Table mapping the different account states to their number +-- @class table State = { LOCKED = 1, VALID = 2, @@ -260,6 +261,7 @@ Credentials = { --- Returns a credential iterator -- + -- @see State -- @param state mask containing values from the State table -- @return credential iterator, returning a credential each time it's -- called. Unless filtered by the state mask all credentials @@ -269,7 +271,7 @@ Credentials = { -- port - number containing the port number -- user - string containing the user name -- pass - string containing the user password - -- state - a state number @see State + -- state - a state number -- service - string containing the name of the service -- scriptname - string containing the name of the -- script that added the credential diff --git a/nselib/ldap.lua b/nselib/ldap.lua index 2609e07b3..465824f34 100644 --- a/nselib/ldap.lua +++ b/nselib/ldap.lua @@ -41,7 +41,8 @@ ERRORS = { LDAP_SIZELIMIT_EXCEEDED = 4 } --- Application constants +--- Application constants +-- @class table APPNO = { BindRequest = 0, BindResponse = 1, @@ -192,7 +193,8 @@ end -- Encodes an LDAP Application operation and its data as a sequence -- --- @param appno LDAP application number @see APPNO +-- @param appno LDAP application number +-- @see APPNO -- @param isConstructed boolean true if constructed, false if primitive -- @param data string containing the LDAP operation content -- @return string containing the encoded LDAP operation diff --git a/nselib/rpc.lua b/nselib/rpc.lua index 36b64879e..48f984986 100644 --- a/nselib/rpc.lua +++ b/nselib/rpc.lua @@ -945,7 +945,6 @@ Mount = { end end - --- -- Decode directory entries -- -- [entry] @@ -953,14 +952,13 @@ Mount = { -- [Directory] -- 4 bytes - value len -- len bytes - directory name - -- ? bytes - fill bytes (@see calcFillByte) + -- ? bytes - fill bytes (see calcFillByte) -- [Groups] -- 4 bytes - value follows (1 if more data, 0 if not) -- [Group] (1 or more) -- 4 bytes - group len -- len bytes - group value - -- ? bytes - fill bytes (@see calcFillByte) - --- + -- ? bytes - fill bytes (see calcFillByte) while true do -- make sure we have atleast 4 more bytes to check for value follows status, data = comm:GetAdditionalBytes( data, pos, 4 ) diff --git a/nselib/sasl.lua b/nselib/sasl.lua index a2498789f..f2ea2ebb8 100644 --- a/nselib/sasl.lua +++ b/nselib/sasl.lua @@ -5,7 +5,7 @@ -- -- The DigestMD5 class contains all code necessary to calculate -- a DIGEST-MD5 response based on the servers challenge and the other --- necessary arguments (@see DigestMD5.new). +-- necessary arguments. -- It can be called through the SASL helper or directly like this: -- -- local dmd5 = DigestMD5:new(chall, user, pass, "AUTHENTICATE", nil, "imap") @@ -14,7 +14,7 @@ -- -- The NTLM class contains all code necessary to calculate a -- NTLM response based on the servers challenge and the other necessary --- arguments (@see NTLM.new). It can be called through the SASL helper or +-- arguments. It can be called through the SASL helper or -- directly like this: -- -- local ntlm = NTLM:new(chall, user, pass)