g_tls_interaction_request_certificate_async (
  GTlsInteraction* interaction,
  GTlsConnection* connection,
  GTlsCertificateRequestFlags flags,
  GCancellable* cancellable,
  GAsyncReadyCallback callback,
  gpointer user_data


Run asynchronous interaction to ask the user for a certificate to use with the connection. In general, g_tls_interaction_invoke_request_certificate() should be used instead of this function.

Derived subclasses usually implement a certificate selector, although they may also choose to provide a certificate from elsewhere. callback will be called when the operation completes. Alternatively the user may abort this certificate request, which will usually abort the TLS connection.

Available since:2.40


connection GTlsConnection

A GTlsConnection object.

 The data is owned by the caller of the function.
flags GTlsCertificateRequestFlags

Flags providing more information about the request.

cancellable GCancellable

An optional GCancellable cancellation object.

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

Will be called when the interaction completes.

user_data gpointer

Data to pass to the callback.