Method

CamelSaslchallenge

since: 3.0

Declaration [src]

void
camel_sasl_challenge (
  CamelSasl* sasl,
  GByteArray* token,
  gint io_priority,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data
)

Description [src]

If token is NULL, asynchronously generate the initial SASL message to send to the server. (This will be NULL if the client doesn’t initiate the exchange.) Otherwise, token is a challenge from the server, and the asynchronous result is the response.

When the operation is finished, callback will be called. You can then call camel_sasl_challenge_finish() to get the result of the operation.

Available since: 3.0

This method completes asynchronously. Use camel_sasl_challenge_finish() inside the GAsyncReadyCallback to obtain the result of the operation.

Parameters

token

Type: An array of guint8

A token, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
io_priority

Type: gint

The I/O priority of the request.

cancellable

Type: GCancellable

Optional GCancellable object, or NULL.

The argument can be NULL.
The data is owned by the caller of the method.
callback

Type: GAsyncReadyCallback

A GAsyncReadyCallback to call when the request is satisfied.

The argument can be NULL.
user_data

Type: gpointer

Data to pass to the callback function.

The argument can be NULL.
The data is owned by the caller of the method.