cram_md5_response (line
73)
Given the challenge from the server, supply the response using cram-md5 (See RFC 2195 for details)
string
cram_md5_response
(string $username, string $password, string $challenge)
-
string
$username: User ID
-
string
$password: User password supplied by User
-
string
$challenge: The challenge supplied by the server
digest_md5_parse_challenge (line
152)
Parse Digest-MD5 challenge.
This function parses the challenge sent during DIGEST-MD5 authentication and returns an array. See the RFC for details on what's in the challenge string.
array
digest_md5_parse_challenge
(string $challenge)
-
string
$challenge: Digest-MD5 Challenge
digest_md5_response (line
97)
Return Digest-MD5 response.
Given the challenge from the server, calculate and return the response-string for digest-md5 authentication. (See RFC 2831 for more details)
string
digest_md5_response
(string $username, string $password, string $challenge, string $service, string $host)
-
string
$username: User ID
-
string
$password: User password supplied by User
-
string
$challenge: The challenge supplied by the server
-
string
$service: The service name, usually 'imap'; it is used to define the digest-uri.
-
string
$host: The host name, usually the server's FQDN; it is used to define the digest-uri.
get_smtp_user (line
228)
Fillin user and password based on SMTP auth settings.
void
get_smtp_user
(string &$user, string &$pass)
-
string
&$user: Reference to SMTP username
-
string
&$pass: Reference to SMTP password (unencrypted)
hmac_md5 (line
198)
Creates a HMAC digest that can be used for auth purposes See RFCs 2104, 2617, 2831 Uses mhash() extension if available
string
hmac_md5
(string $data, [string $key = ''])
-
string
$data: Data to apply hash function to.
-
string
$key: Optional key, which, if supplied, will be used to calculate data's HMAC.
is_logged_in (line
27)
Check if user has previously logged in to the SquirrelMail session. If user has not logged in, execution will stop inside this function.
boolean
is_logged_in
()
nsm_auth_delete_password (line
346)
Removes saved password information.
Function must be executed before html output is started.
void
nsm_auth_delete_password
([integer $flag = 3])
-
integer
$flag: 1 - delete password, 2 - delete otp, 3 - delete both
nsm_auth_read_key (line
295)
Reads encrypted pass password
string
nsm_auth_read_key
()
nsm_auth_read_otp (line
283)
Reads key used to encrypt password
Function works only since 1.3
string
nsm_auth_read_otp
()
nsm_auth_read_password (line
264)
Reads and decodes stored user password information
Direct access to password information is deprecated.
string
nsm_auth_read_password
()
nsm_auth_save_password (line
314)
Saves password Function must be executed before html output is started.
boolean
nsm_auth_save_password
(string $password)
-
string
$password: user's password
nsm_check_httponly_cookies (line
375)
Checks for HTTPOnly cookie support in browsers.
Check works only when function is able to detect used browser.
Broken browsers: * Mozilla/4.0 (compatible; MSIE 5.23; Mac_PowerPC)
boolean
nsm_check_httponly_cookies
()
sqauth_read_password (line
253)
Reads and decodes stored user password information
Direct access to password information is deprecated.
string
sqauth_read_password
()