You are here

function _securesite_parse_directives in Secure Site 7.2

Same name and namespace in other branches
  1. 6.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
Sets up a Drupal site for running functional and integration tests.
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.

... See full list

File

./securesite.inc, line 45
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;
}