function _securesite_parse_directives in Secure Site 6.2
Same name and namespace in other branches
- 7.2 securesite.inc \_securesite_parse_directives()
Parse digest header into an array of directives.
13 calls to _securesite_parse_directives()
- SecureSiteFunctionDigestValidateUnitTest::testSecureSiteFunctionDigestValidateData in ./
securesite.test - Check output with data.
- SecureSiteScriptDigestMD5UnitTest::setUp in ./
securesite.test - Implementation of setUp().
- SecureSiteScriptDigestMD5UnitTest::testSecureSiteScriptDigestMD5AuthReplay in ./
securesite.test - Check response to replay attack with auth quality of protection.
- SecureSiteScriptDigestMD5UnitTest::testSecureSiteScriptDigestMD5AuthStored in ./
securesite.test - Check response to stored password with auth quality of protection.
- SecureSiteScriptDigestMD5UnitTest::testSecureSiteScriptDigestMD5Expired in ./
securesite.test - Check response to expired challenge.
File
- ./
securesite.inc, line 42 - Secure Site log-in functions.
Code
function _securesite_parse_directives($field_value) {
$directives = array();
foreach (explode(',', trim($field_value)) as $directive) {
list($directive, $value) = explode('=', trim($directive), 2);
$directives[$directive] = trim($value, '"');
}
return $directives;
}