Go to the source code of this file.
Definition in file openid.inc.
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.
enum OPENID_NS_1_0 |
OpenID Authentication 1.0 namespace URL; used for backwards-compatibility.
Definition at line 51 of file openid.inc.
enum OPENID_NS_1_1 |
OpenID Authentication 1.1 namespace URL; used for backwards-compatibility.
Definition at line 46 of file openid.inc.
enum OPENID_NS_2_0 |
OpenID Authentication 2.0 namespace URL.
Definition at line 41 of file openid.inc.
enum OPENID_RAND_SOURCE |
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.
_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().
_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().
_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().
_openid_dh_xorsecret | ( | $ | shared, | |
$ | secret | |||
) |
Definition at line 344 of file openid.inc.
References _openid_dh_long_to_binary(), and _openid_sha1().
_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 | ) |
_openid_get_params | ( | $ | str | ) |
_openid_hmac | ( | $ | key, | |
$ | text | |||
) |
Definition at line 268 of file openid.inc.
References _openid_sha1().
Referenced by _openid_signature().
_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().
_openid_normalize_url | ( | $ | url | ) |
_openid_normalize_xri | ( | $ | xri | ) |
_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().
_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
$association | - object loaded from openid_association or openid_server_association table
| |
$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().
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().
openid_redirect_form | ( | &$ | form_state, | |
$ | url, | |||
$ | message | |||
) |
Definition at line 79 of file openid.inc.
References $url, $value, and t().
openid_redirect_http | ( | $ | url, | |
$ | message | |||
) |
Performs an HTTP 302 redirect (for the 1.x protocol).
Definition at line 56 of file openid.inc.
$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.