dbus-auth.c File Reference
Typedef DBusInitialResponseFunction
This function appends an initial client response to the given string
Typedef DBusAuthDataFunction
This function processes a block of data received from the peer. i.e. handles a DATA command.
Typedef DBusAuthEncodeFunction
This function encodes a block of data from the peer.
Typedef DBusAuthDecodeFunction
This function decodes a block of data from the peer.
Typedef DBusAuthShutdownFunction
typedef void(* | DBusAuthShutdownFunction |
This function is called when the mechanism is abandoned.
Enum DBusAuthCommand
Enumeration for the known authentication commands.
Enumerators
DBUS_AUTH_COMMAND_AUTH | |
DBUS_AUTH_COMMAND_CANCEL | |
DBUS_AUTH_COMMAND_DATA | |
DBUS_AUTH_COMMAND_BEGIN | |
DBUS_AUTH_COMMAND_REJECTED | |
DBUS_AUTH_COMMAND_OK | |
DBUS_AUTH_COMMAND_ERROR | |
DBUS_AUTH_COMMAND_UNKNOWN | |
Typedef DBusAuthStateFunction
Auth state function, determines the reaction to incoming events for a particular state. Returns whether we had enough memory to complete the operation.
goto_state(DBusAuth *, const DBusAuthStateData *)
void | goto_state | ( | DBusAuth * | auth, |
| const DBusAuthStateData * | new_state |
| ) | [static] |
Parameters
DBusAuth * auth | |
const DBusAuthStateData * new_state | |
send_auth(DBusAuth *, const DBusAuthMechanismHandler *)
Parameters
DBusAuth * auth | |
const DBusAuthMechanismHandler * mech | |
send_data(DBusAuth *, DBusString *)
send_rejected(DBusAuth *)
send_error(DBusAuth *, const char *)
send_begin(DBusAuth *, const DBusString *)
handle_server_state_waiting_for_auth(DBusAuth *, DBusAuthCommand, const DBusString *)
handle_server_state_waiting_for_data(DBusAuth *, DBusAuthCommand, const DBusString *)
handle_server_state_waiting_for_begin(DBusAuth *, DBusAuthCommand, const DBusString *)
const DBusAuthStateData server_state_waiting_for_auth
const DBusAuthStateData | server_state_waiting_for_auth | [static] |
const DBusAuthStateData server_state_waiting_for_data
const DBusAuthStateData | server_state_waiting_for_data | [static] |
const DBusAuthStateData server_state_waiting_for_begin
const DBusAuthStateData | server_state_waiting_for_begin | [static] |
handle_client_state_waiting_for_data(DBusAuth *, DBusAuthCommand, const DBusString *)
handle_client_state_waiting_for_ok(DBusAuth *, DBusAuthCommand, const DBusString *)
handle_client_state_waiting_for_reject(DBusAuth *, DBusAuthCommand, const DBusString *)
const DBusAuthStateData client_state_need_send_auth
const DBusAuthStateData | client_state_need_send_auth | [static] |
const DBusAuthStateData client_state_waiting_for_data
const DBusAuthStateData | client_state_waiting_for_data | [static] |
const DBusAuthStateData client_state_waiting_for_ok
const DBusAuthStateData | client_state_waiting_for_ok | [static] |
const DBusAuthStateData client_state_waiting_for_reject
const DBusAuthStateData | client_state_waiting_for_reject | [static] |
const DBusAuthStateData common_state_authenticated
const DBusAuthStateData | common_state_authenticated | [static] |
Common terminal states. Terminal states have handler == NULL.
const DBusAuthStateData common_state_need_disconnect
const DBusAuthStateData | common_state_need_disconnect | [static] |
const char auth_side_client
const char | auth_side_client | [static] |
const char auth_side_server
const char | auth_side_server | [static] |
DBUS_AUTH_NAME
The name of the auth ("client" or "server")
_dbus_auth_new(int)
DBusAuth * | _dbus_auth_new | ( | int | size | ) | [static] |
shutdown_mech(DBusAuth *)
void | shutdown_mech | ( | DBusAuth * | auth | ) | [static] |
sha1_compute_hash(DBusAuth *, int, const DBusString *, const DBusString *, DBusString *)
sha1_handle_first_client_response(DBusAuth *, const DBusString *)
sha1_handle_second_client_response(DBusAuth *, const DBusString *)
handle_server_data_cookie_sha1_mech(DBusAuth *, const DBusString *)
platform_security_handle_first_client_response(DBusAuth *, const DBusString *)
platform_security_handle_second_client_response(DBusAuth *, const DBusString *)
handle_server_data_platform_security_mech(DBusAuth *, const DBusString *)
handle_server_shutdown_platform_security_mech(DBusAuth *)
void | handle_server_shutdown_platform_security_mech | ( | DBusAuth * | auth | ) | [static] |
handle_server_shutdown_cookie_sha1_mech(DBusAuth *)
void | handle_server_shutdown_cookie_sha1_mech | ( | DBusAuth * | auth | ) | [static] |
handle_client_initial_response_platform_security_mech(DBusAuth *, DBusString *)
handle_client_initial_response_cookie_sha1_mech(DBusAuth *, DBusString *)
handle_client_data_platform_security_mech(DBusAuth *, const DBusString *)
handle_client_data_cookie_sha1_mech(DBusAuth *, const DBusString *)
handle_client_shutdown_platform_security_mech(DBusAuth *)
void | handle_client_shutdown_platform_security_mech | ( | DBusAuth * | auth | ) | [static] |
handle_client_shutdown_cookie_sha1_mech(DBusAuth *)
void | handle_client_shutdown_cookie_sha1_mech | ( | DBusAuth * | auth | ) | [static] |
handle_server_data_external_mech(DBusAuth *, const DBusString *)
handle_server_shutdown_external_mech(DBusAuth *)
void | handle_server_shutdown_external_mech | ( | DBusAuth * | auth | ) | [static] |
handle_client_initial_response_external_mech(DBusAuth *, DBusString *)
handle_client_data_external_mech(DBusAuth *, const DBusString *)
handle_client_shutdown_external_mech(DBusAuth *)
void | handle_client_shutdown_external_mech | ( | DBusAuth * | auth | ) | [static] |
const DBusAuthMechanismHandler all_mechanisms
const DBusAuthMechanismHandler | all_mechanisms | [static] |
find_mech(const DBusString *, char **)
const DBusAuthMechanismHandler * | find_mech | ( | const DBusString * | name, |
| char ** | allowed_mechs |
| ) | [static] |
process_data(DBusAuth *, const DBusString *, DBusAuthDataFunction)
handle_auth(DBusAuth *, const DBusString *)
get_word(const DBusString *, int *, DBusString *)
record_mechanisms(DBusAuth *, const DBusString *)
process_rejected(DBusAuth *, const DBusString *)
const DBusAuthCommandName auth_command_names
const DBusAuthCommandName | auth_command_names | [static] |
lookup_command_from_name(DBusString *)
process_command(DBusAuth *)
_dbus_auth_client_new_test(void)
DBusAuth * | _dbus_auth_client_new_test | ( | void | | ) | |
Creates a new auth conversation object for the client side. See doc/dbus-sasl-profile.txt for full details on what this object does.
Copyright ©2010 Nokia Corporation and/or its subsidiary(-ies).
All rights
reserved. Unless otherwise stated, these materials are provided under the terms of the Eclipse Public License
v1.0.