![]() |
![]() |
![]() |
wocky Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy | Properties |
GQuark wocky_sasl_auth_error_quark (void); #define WOCKY_SASL_AUTH_ERROR enum WockySaslAuthError; WockySaslAuth; WockySaslAuthClass; WockySaslAuth * wocky_sasl_auth_new (const gchar *server, const gchar *username, const gchar *password, WockyXmppConnection *connection); void wocky_sasl_auth_authenticate_async (WockySaslAuth *sasl, WockyXmppStanza *features, gboolean allow_plain, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data); gboolean wocky_sasl_auth_authenticate_finish (WockySaslAuth *sasl, GAsyncResult *result, GError **error);
"connection" WockyXmppConnection* : Read / Write / Construct Only "password" gchar* : Write / Construct "server" gchar* : Read / Write / Construct "username" gchar* : Write / Construct
typedef enum { /* Failed to initialize our sasl support */ WOCKY_SASL_AUTH_ERROR_INIT_FAILED, /* Server doesn't support sasl (no mechanisms) */ WOCKY_SASL_AUTH_ERROR_SASL_NOT_SUPPORTED, /* Server doesn't support any mechanisms that we support */ WOCKY_SASL_AUTH_ERROR_NO_SUPPORTED_MECHANISMS, /* Couldn't send our stanzas to the server */ WOCKY_SASL_AUTH_ERROR_NETWORK, /* Server sent an invalid reply */ WOCKY_SASL_AUTH_ERROR_INVALID_REPLY, /* Failure to provide user credentials */ WOCKY_SASL_AUTH_ERROR_NO_CREDENTIALS, /* Server sent a failure */ WOCKY_SASL_AUTH_ERROR_FAILURE, /* disconnected */ WOCKY_SASL_AUTH_ERROR_CONNRESET, /* XMPP stream error while authing */ WOCKY_SASL_AUTH_ERROR_STREAM, } WockySaslAuthError;
WockySaslAuth * wocky_sasl_auth_new (const gchar *server, const gchar *username, const gchar *password, WockyXmppConnection *connection);
|
|
|
|
|
|
|
|
Returns : |
void wocky_sasl_auth_authenticate_async (WockySaslAuth *sasl, WockyXmppStanza *features, gboolean allow_plain, GCancellable *cancellable, GAsyncReadyCallback callback, gpointer user_data);
|
|
|
|
|
|
|
|
|
|
|
gboolean wocky_sasl_auth_authenticate_finish (WockySaslAuth *sasl, GAsyncResult *result, GError **error);
|
|
|
|
|
|
Returns : |
"connection"
property"connection" WockyXmppConnection* : Read / Write / Construct Only
The Xmpp connection to user.
"password"
property"password" gchar* : Write / Construct
The password to authenticate with.
Default value: NULL
"server"
property"server" gchar* : Read / Write / Construct
The name of the server.
Default value: NULL
"username"
property"username" gchar* : Write / Construct
The username to authenticate with.
Default value: NULL