Procedural File: openid.lib.php
Source Location: /main/auth/openid/openid.lib.php
Page Details:
Tags:
OPENID_DH_DEFAULT_GEN [line 15]
OPENID_DH_DEFAULT_MOD [line 8]
OPENID_NS_1_0 [line 22]
OPENID_NS_1_1 [line 21]
OPENID_NS_2_0 [line 20]
OPENID_RAND_SOURCE [line 17]
OPENID_SHA1_BLOCKSIZE [line 16]
bcpowmod [line 393]
void bcpowmod(
$base, $exp, $mod)
|
|
Provide bcpowmod support for PHP4.
Parameters
openid_redirect [line 41]
void openid_redirect(
$url, $message)
|
|
Creates a js auto-submit redirect for (for the 2.x protocol)
Parameters
openid_redirect_http [line 27]
void openid_redirect_http(
$url, $message)
|
|
Performs an HTTP 302 redirect (for the 1.x protocol).
Parameters
_openid_create_message [line 110]
void _openid_create_message(
$data)
|
|
Create a serialized message packet as per spec: $key:$value\n .
Parameters
_openid_dh_base64_to_long [line 249]
void _openid_dh_base64_to_long(
$str)
|
|
Parameters
_openid_dh_binary_to_long [line 259]
void _openid_dh_binary_to_long(
$str)
|
|
Parameters
_openid_dh_long_to_base64 [line 255]
void _openid_dh_long_to_base64(
$str)
|
|
Parameters
_openid_dh_long_to_binary [line 271]
void _openid_dh_long_to_binary(
$long)
|
|
Parameters
_openid_dh_rand [line 311]
void _openid_dh_rand(
$stop)
|
|
Parameters
_openid_dh_xorsecret [line 300]
void _openid_dh_xorsecret(
$shared, $secret)
|
|
Parameters
_openid_encode_message [line 125]
void _openid_encode_message(
$message)
|
|
Encode a message from _openid_create_message for HTTP Post
Parameters
_openid_fix_post [line 373]
void _openid_fix_post(
&$post)
|
|
Fix PHP's habit of replacing '.' by '_' in posted data.
Parameters
_openid_get_bytes [line 350]
void _openid_get_bytes(
$num_bytes)
|
|
Parameters
_openid_hmac [line 224]
void _openid_hmac(
$key, $text)
|
|
Parameters
_openid_is_xri [line 61]
void _openid_is_xri(
$identifier)
|
|
Determine if the given identifier is an XRI ID.
Parameters
_openid_link_href [line 177]
void _openid_link_href(
$rel, $html)
|
|
Pull the href attribute out of an html link element.
Parameters
_openid_meta_httpequiv [line 190]
void _openid_meta_httpequiv(
$equiv, $html)
|
|
Pull the http-equiv attribute out of an html meta element
Parameters
_openid_nonce [line 165]
Return a nonce value - formatted per OpenID spec.
_openid_normalize [line 76]
void _openid_normalize(
$identifier)
|
|
Normalize the given identifier as per spec.
Parameters
_openid_normalize_url [line 93]
void _openid_normalize_url(
$url)
|
|
Parameters
_openid_normalize_xri [line 85]
void _openid_normalize_xri(
$xri)
|
|
Parameters
_openid_parse_message [line 147]
void _openid_parse_message(
$message)
|
|
Convert a direct communication message into an associative array.
Parameters
_openid_sha1 [line 238]
void _openid_sha1(
$text)
|
|
Parameters
_openid_signature [line 207]
void _openid_signature(
$association $association, $message_array $message_array, $keys_to_sign $keys_to_sign)
|
|
Sign certain keys in a message
Parameters
| $association |
$association |
- object loaded from openid_association or openid_server_association table - important fields are ->assoc_type and ->mac_key
|
| $message_array |
$message_array |
- array of entire message about to be sent |
| $keys_to_sign |
$keys_to_sign |
- keys in the message to include in signature (without 'openid.' appended) |
|