function _openid_create_message
7.x openid.inc | _openid_create_message($data) |
6.x openid.inc | _openid_create_message($data) |
Create a serialized message packet as per spec: $key:$value\n .
4 calls to _openid_create_message()
- openid_association in drupal-7.x/
modules/ openid/ openid.module - Attempt to create a shared secret with the OpenID Provider.
- openid_verify_assertion in drupal-7.x/
modules/ openid/ openid.module - Attempt to verify the response received from the OpenID Provider.
- _openid_signature in drupal-7.x/
modules/ openid/ openid.inc - Sign certain keys in a message
- _openid_test_endpoint_associate in drupal-7.x/
modules/ openid/ tests/ openid_test.module - OpenID endpoint; handle "associate" requests (see OpenID Authentication 2.0, section 8).
File
- drupal-7.x/
modules/ openid/ openid.inc, line 329 - OpenID utility functions.
Code
function _openid_create_message($data) {
$serialized = '';
foreach ($data as $key => $value) {
if ((strpos($key, ':') !== FALSE) || (strpos($key, "\n") !== FALSE) || (strpos($value, "\n") !== FALSE)) {
return NULL;
}
$serialized .= "$key:$value\n";
}
return $serialized;
}