C:/drupal/modules/openid/openid.inc File Reference

Go to the source code of this file.


Enumerations

enum  OPENID_DH_DEFAULT_MOD
enum  OPENID_DH_DEFAULT_GEN
enum  OPENID_SHA1_BLOCKSIZE
enum  OPENID_RAND_SOURCE
enum  OPENID_NS_2_0
enum  OPENID_NS_1_1
enum  OPENID_NS_1_0

Functions

 openid_redirect_http ($url, $message)
 openid_redirect ($url, $message)
 openid_redirect_form (&$form_state, $url, $message)
 _openid_is_xri ($identifier)
 _openid_normalize ($identifier)
 _openid_normalize_xri ($xri)
 _openid_normalize_url ($url)
 _openid_create_message ($data)
 _openid_encode_message ($message)
 _openid_parse_message ($message)
 _openid_nonce ()
 _openid_link_href ($rel, $html)
 _openid_meta_httpequiv ($equiv, $html)
 _openid_signature ($association, $message_array, $keys_to_sign)
 _openid_hmac ($key, $text)
 _openid_sha1 ($text)
 _openid_dh_base64_to_long ($str)
 _openid_dh_long_to_base64 ($str)
 _openid_dh_binary_to_long ($str)
 _openid_dh_long_to_binary ($long)
 _openid_dh_xorsecret ($shared, $secret)
 _openid_dh_rand ($stop)
 _openid_get_bytes ($num_bytes)
 _openid_response ($str=NULL)
 _openid_get_params ($str)

Variables

 $result = 1
 $square = bcmod(bcmul($square, $square), $mod)
 $exp = bcdiv($exp, 2)


Detailed Description

OpenID utility functions.

Definition in file openid.inc.


Enumeration Type Documentation

Diffie-Hellman generator; used for Diffie-Hellman key exchange computations.

Definition at line 26 of file openid.inc.

Diffie-Hellman Key Exchange Default Value.

This is used to establish an association between the Relying Party and the OpenID Provider.

See RFC 2631:

Definition at line 17 of file openid.inc.

OpenID Authentication 1.0 namespace URL; used for backwards-compatibility.

Definition at line 51 of file openid.inc.

OpenID Authentication 1.1 namespace URL; used for backwards-compatibility.

Definition at line 46 of file openid.inc.

OpenID Authentication 2.0 namespace URL.

Definition at line 41 of file openid.inc.

Random number generator; used for Diffie-Hellman key exchange computations.

Definition at line 36 of file openid.inc.

SHA-1 hash block size; used for Diffie-Hellman key exchange computations.

Definition at line 31 of file openid.inc.


Function Documentation

_openid_create_message ( data  ) 

Create a serialized message packet as per spec: $key:$value
.

Definition at line 152 of file openid.inc.

References $value.

Referenced by _openid_signature().

_openid_dh_base64_to_long ( str  ) 

Definition at line 293 of file openid.inc.

References _openid_dh_binary_to_long().

Here is the call graph for this function:

_openid_dh_binary_to_long ( str  ) 

Definition at line 303 of file openid.inc.

Referenced by _openid_dh_base64_to_long(), and _openid_dh_rand().

_openid_dh_long_to_base64 ( str  ) 

Definition at line 299 of file openid.inc.

References _openid_dh_long_to_binary().

Here is the call graph for this function:

_openid_dh_long_to_binary ( long  ) 

Definition at line 315 of file openid.inc.

Referenced by _openid_dh_long_to_base64(), _openid_dh_rand(), and _openid_dh_xorsecret().

_openid_dh_rand ( stop  ) 

Definition at line 355 of file openid.inc.

References _openid_dh_binary_to_long(), _openid_dh_long_to_binary(), and _openid_get_bytes().

Here is the call graph for this function:

_openid_dh_xorsecret ( shared,
secret 
)

Definition at line 344 of file openid.inc.

References _openid_dh_long_to_binary(), and _openid_sha1().

Here is the call graph for this function:

_openid_encode_message ( message  ) 

Encode a message from _openid_create_message for HTTP Post

Definition at line 167 of file openid.inc.

_openid_get_bytes ( num_bytes  ) 

Definition at line 394 of file openid.inc.

Referenced by _openid_dh_rand().

_openid_get_params ( str  ) 

Definition at line 435 of file openid.inc.

Referenced by _openid_response().

_openid_hmac ( key,
text 
)

Definition at line 268 of file openid.inc.

References _openid_sha1().

Referenced by _openid_signature().

Here is the call graph for this function:

_openid_is_xri ( identifier  ) 

Determine if the given identifier is an XRI ID.

Definition at line 103 of file openid.inc.

Referenced by _openid_normalize().

_openid_link_href ( rel,
html 
)

Pull the href attribute out of an html link element.

Definition at line 219 of file openid.inc.

_openid_meta_httpequiv ( equiv,
html 
)

Pull the http-equiv attribute out of an html meta element

Definition at line 232 of file openid.inc.

References $content.

_openid_nonce (  ) 

Return a nonce value - formatted per OpenID spec.

Definition at line 207 of file openid.inc.

_openid_normalize ( identifier  ) 

Normalize the given identifier as per spec.

Definition at line 118 of file openid.inc.

References _openid_is_xri(), _openid_normalize_url(), and _openid_normalize_xri().

Referenced by openid_user_add_validate().

Here is the call graph for this function:

_openid_normalize_url ( url  ) 

Definition at line 135 of file openid.inc.

References $url.

Referenced by _openid_normalize().

_openid_normalize_xri ( xri  ) 

Definition at line 127 of file openid.inc.

Referenced by _openid_normalize().

_openid_parse_message ( message  ) 

Convert a direct communication message into an associative array.

Definition at line 189 of file openid.inc.

_openid_response ( str = NULL  ) 

Definition at line 414 of file openid.inc.

References _openid_get_params().

Here is the call graph for this function:

_openid_sha1 ( text  ) 

Definition at line 282 of file openid.inc.

Referenced by _openid_dh_xorsecret(), and _openid_hmac().

_openid_signature ( association,
message_array,
keys_to_sign 
)

Sign certain keys in a message

Parameters:
$association - object loaded from openid_association or openid_server_association table
  • important fields are ->assoc_type and ->mac_key
$message_array - array of entire message about to be sent
$keys_to_sign - keys in the message to include in signature (without 'openid.' appended)

Definition at line 251 of file openid.inc.

References _openid_create_message(), and _openid_hmac().

Here is the call graph for this function:

openid_redirect ( url,
message 
)

Creates a js auto-submit redirect for (for the 2.x protocol)

Definition at line 70 of file openid.inc.

References $output, $url, drupal_get_form(), exit, print, and t().

Here is the call graph for this function:

openid_redirect_form ( &$  form_state,
url,
message 
)

Definition at line 79 of file openid.inc.

References $url, $value, and t().

Here is the call graph for this function:

openid_redirect_http ( url,
message 
)

Performs an HTTP 302 redirect (for the 1.x protocol).

Definition at line 56 of file openid.inc.

References $url, and exit.


Variable Documentation

$exp = bcdiv($exp, 2)

Definition at line 462 of file openid.inc.

return $result = 1

Definition at line 456 of file openid.inc.

Referenced by _comment_delete_thread(), _db_query(), _db_rewrite_sql(), _locale_export_get_strings(), _locale_parse_js_file(), _locale_rebuild_js(), _locale_translate_seek(), _menu_delete_item(), _menu_navigation_links_rebuild(), _menu_set_expanded_menus(), _menu_tree_data(), _theme_process_registry(), _trigger_get_hook_actions(), _xmlrpc(), actions_do(), actions_get_all_actions(), actions_synchronize(), aggregator_feed_items_load(), aggregator_form_feed_validate(), aggregator_page_categories(), aggregator_page_opml(), aggregator_page_rss(), aggregator_page_sources(), aggregator_view(), UnitTestCase::assertFalse(), UnitTestCase::assertTrue(), block_admin_configure(), blog_feed_last(), blog_feed_user(), blog_page_last(), blog_page_user(), comment_admin_overview(), contact_admin_categories(), contact_mail_page(), db_add_field(), db_fetch_array(), db_fetch_object(), db_result(), dblog_event(), dblog_overview(), dblog_top(), drupal_get_installed_schema_version(), drupal_get_normal_path(), drupal_get_path_alias(), drupal_http_request(), drupal_map_assoc(), drupal_test_mysql(), drupal_test_mysqli(), drupal_test_pgsql(), drupal_uninstall_module(), filter_admin_format_form_validate(), image_gd_crop(), image_gd_resize(), image_gd_rotate(), install_task_list(), install_verify_drupal(), language_list(), list_themes(), locale_batch_by_component(), locale_batch_by_language(), locale_translate_edit_form(), menu_delete_menu_confirm_submit(), menu_edit_menu_submit(), menu_get_names(), menu_link_delete(), menu_link_save(), menu_local_tasks(), menu_overview_form(), menu_overview_page(), menu_tree_check_access(), menu_tree_data(), menu_tree_page_data(), module_invoke_all(), module_list(), node_admin_nodes(), openid_authentication_page(), openid_user_identities(), path_admin_overview(), poll_page(), poll_votes(), profile_admin_overview(), profile_admin_settings_autocomplete(), profile_autocomplete(), profile_browse(), DrupalTests::run(), sess_read(), sess_write(), statistics_access_log(), statistics_node_tracker(), statistics_recent_hits(), statistics_top_pages(), statistics_top_referrers(), statistics_top_visitors(), statistics_user_tracker(), system_date_time_lookup(), system_ip_blocking(), system_main_admin_page(), system_sql(), taxonomy_autocomplete(), taxonomy_term_page(), template_preprocess_search_result(), template_preprocess_search_results(), theme_taxonomy_term_page(), tracker_page(), update_fix_compatibility(), update_sql(), user_admin_account(), user_autocomplete(), variable_init(), xmlrpc_server(), and xmlrpc_server_multicall().

$square = bcmod(bcmul($square, $square), $mod)

Definition at line 461 of file openid.inc.


Generated on Mon Jun 2 15:08:26 2008 for SimpleTest by  1.5.5