index.html
Main Page
|
modules.html
Modules
|
namespaces.html
Namespace List
|
hierarchy.html
Class Hierarchy
|
annotated.html
Data Structures
|
dirs.html
Directories
|
files.html
File List
|
namespacemembers.html
Namespace Members
|
functions.html
Data Fields
|
pages.html
Related Pages
Authentication implementation details
[
group__DBusInternals.html
D-BUS internal implementation details
]
structDBusAuth.html
DBusAuth
implementation details.
#_details
More...
Data Structures
struct
structDBusAuthMechanismHandler.html
DBusAuthMechanismHandler
Virtual table representing a particular auth mechanism.
structDBusAuthMechanismHandler.html#_details
More...
struct
structDBusAuthStateData.html
DBusAuthStateData
Information about a auth state.
structDBusAuthStateData.html#_details
More...
struct
structDBusAuth.html
DBusAuth
Internal members of DBusAuth.
structDBusAuth.html#_details
More...
struct
structDBusAuthClient.html
DBusAuthClient
"Subclass" of
structDBusAuth.html
DBusAuth
for client side
structDBusAuthClient.html#_details
More...
struct
structDBusAuthServer.html
DBusAuthServer
"Subclass" of
structDBusAuth.html
DBusAuth
for server side.
structDBusAuthServer.html#_details
More...
struct
structDBusAuthCommandName.html
DBusAuthCommandName
Mapping from command name to enum.
structDBusAuthCommandName.html#_details
More...
Defines
#define
group__DBusAuthInternals.html#ga56
DBUS_AUTH_IS_SERVER
(auth)   ((auth)->side == auth_side_server)
#define
group__DBusAuthInternals.html#ga57
DBUS_AUTH_IS_CLIENT
(auth)   ((auth)->side == auth_side_client)
#define
group__DBusAuthInternals.html#ga58
DBUS_AUTH_CLIENT
(auth)   ((
structDBusAuthClient.html
DBusAuthClient
*)(auth))
#define
group__DBusAuthInternals.html#ga59
DBUS_AUTH_SERVER
(auth)   ((
structDBusAuthServer.html
DBusAuthServer
*)(auth))
#define
group__DBusAuthInternals.html#ga60
DBUS_AUTH_NAME
(auth)   ((auth)->side)
The name of the auth ("client" or "server").
#ga60
#define
group__DBusAuthInternals.html#ga61
N_CHALLENGE_BYTES
(128/8)
http://www.ietf.org/rfc/rfc2831.txt
http://www.ietf.org/rfc/rfc2831.txt
suggests at least 64 bits of entropy, we use 128.
#ga61
Typedefs
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusAuthInternals.html#ga0
DBusInitialResponseFunction
)(
structDBusAuth.html
DBusAuth
*auth,
structDBusString.html
DBusString
*response)
This function appends an initial client response to the given string.
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusAuthInternals.html#ga1
DBusAuthDataFunction
)(
structDBusAuth.html
DBusAuth
*auth, const
structDBusString.html
DBusString
*data)
This function processes a block of data received from the peer.
#ga1
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusAuthInternals.html#ga2
DBusAuthEncodeFunction
)(
structDBusAuth.html
DBusAuth
*auth, const
structDBusString.html
DBusString
*data,
structDBusString.html
DBusString
*encoded)
This function encodes a block of data from the peer.
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusAuthInternals.html#ga3
DBusAuthDecodeFunction
)(
structDBusAuth.html
DBusAuth
*auth, const
structDBusString.html
DBusString
*data,
structDBusString.html
DBusString
*decoded)
This function decodes a block of data from the peer.
typedef void(*
group__DBusAuthInternals.html#ga4
DBusAuthShutdownFunction
)(
structDBusAuth.html
DBusAuth
*auth)
This function is called when the mechanism is abandoned.
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusAuthInternals.html#ga5
DBusAuthStateFunction
)(
structDBusAuth.html
DBusAuth
*auth,
group__DBusAuthInternals.html#ga62
DBusAuthCommand
command, const
structDBusString.html
DBusString
*args)
Auth state function, determines the reaction to incoming events for a particular state.
#ga5
Enumerations
enum
group__DBusAuthInternals.html#ga62
DBusAuthCommand
{
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
}
Enumeration for the known authentication commands.
Detailed Description
structDBusAuth.html
DBusAuth
implementation details.
Private details of authentication code.
Define Documentation
#define DBUS_AUTH_CLIENT
(
auth
)
((
structDBusAuthClient.html
DBusAuthClient
*)(auth))
Parameters:
auth
the auth conversation
Returns:
auth cast to
structDBusAuthClient.html
DBusAuthClient
Definition at line
dbus-auth_8c-source.html#l00314
314
of file
dbus-auth_8c-source.html
dbus-auth.c
.
Referenced by
dbus-auth_8c-source.html#l02021
_dbus_auth_client_new()
,
dbus-auth_8c-source.html#l02468
_dbus_auth_get_guid_from_server()
, and
dbus-auth_8c-source.html#l02074
_dbus_auth_unref()
.
#define DBUS_AUTH_IS_CLIENT
(
auth
)
((auth)->side == auth_side_client)
Parameters:
auth
the auth conversation
Returns:
group__DBusMacros.html#ga2
TRUE
if the conversation is the client side
Definition at line
dbus-auth_8c-source.html#l00309
309
of file
dbus-auth_8c-source.html
dbus-auth.c
.
Referenced by
dbus-auth_8c-source.html#l02407
_dbus_auth_decode_data()
,
dbus-auth_8c-source.html#l02344
_dbus_auth_encode_data()
,
dbus-auth_8c-source.html#l02468
_dbus_auth_get_guid_from_server()
,
dbus-auth_8c-source.html#l02376
_dbus_auth_needs_decoding()
,
dbus-auth_8c-source.html#l02317
_dbus_auth_needs_encoding()
, and
dbus-auth_8c-source.html#l02074
_dbus_auth_unref()
.
#define DBUS_AUTH_IS_SERVER
(
auth
)
((auth)->side == auth_side_server)
Parameters:
auth
the auth conversation
Returns:
group__DBusMacros.html#ga2
TRUE
if the conversation is the server side
Definition at line
dbus-auth_8c-source.html#l00304
304
of file
dbus-auth_8c-source.html
dbus-auth.c
.
Referenced by
dbus-auth_8c-source.html#l02074
_dbus_auth_unref()
.
#define DBUS_AUTH_NAME
(
auth
)
((auth)->side)
The name of the auth ("client" or "server").
Parameters:
auth
the auth conversation
Returns:
a string
Definition at line
dbus-auth_8c-source.html#l00326
326
of file
dbus-auth_8c-source.html
dbus-auth.c
.
Referenced by
dbus-auth_8c-source.html#l02224
_dbus_auth_bytes_sent()
, and
dbus-auth_8c-source.html#l02155
_dbus_auth_do_work()
.
#define DBUS_AUTH_SERVER
(
auth
)
((
structDBusAuthServer.html
DBusAuthServer
*)(auth))
Parameters:
auth
the auth conversation
Returns:
auth cast to
structDBusAuthServer.html
DBusAuthServer
Definition at line
dbus-auth_8c-source.html#l00319
319
of file
dbus-auth_8c-source.html
dbus-auth.c
.
Referenced by
dbus-auth_8c-source.html#l01975
_dbus_auth_server_new()
, and
dbus-auth_8c-source.html#l02074
_dbus_auth_unref()
.
#define N_CHALLENGE_BYTES   (128/8)
http://www.ietf.org/rfc/rfc2831.txt
http://www.ietf.org/rfc/rfc2831.txt
suggests at least 64 bits of entropy, we use 128.
This is the number of bytes in the random challenge.
Definition at line
dbus-auth_8c-source.html#l00485
485
of file
dbus-auth_8c-source.html
dbus-auth.c
.
Typedef Documentation
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusAuthInternals.html#ga1
DBusAuthDataFunction
)(
structDBusAuth.html
DBusAuth
*auth, const
structDBusString.html
DBusString
*data)
This function processes a block of data received from the peer.
i.e. handles a DATA command.
Definition at line
dbus-auth_8c-source.html#l00079
79
of file
dbus-auth_8c-source.html
dbus-auth.c
.
typedef
group__DBusTypes.html#ga2
dbus_bool_t
(*
group__DBusAuthInternals.html#ga5
DBusAuthStateFunction
)(
structDBusAuth.html
DBusAuth
*auth,
group__DBusAuthInternals.html#ga62
DBusAuthCommand
command, const
structDBusString.html
DBusString
*args)
Auth state function, determines the reaction to incoming events for a particular state.
Returns whether we had enough memory to complete the operation.
Definition at line
dbus-auth_8c-source.html#l00137
137
of file
dbus-auth_8c-source.html
dbus-auth.c
.
Generated on Tue Sep 13 00:15:27 2005 for D-BUS by
http://www.doxygen.org/index.html
doxygen
1.4.4
