Virtual Method
GioTlsInteractionrequest_certificate_async
since: 2.40
Declaration
void
request_certificate_async (
GTlsInteraction* interaction,
GTlsConnection* connection,
GTlsCertificateRequestFlags flags,
GCancellable* cancellable,
GAsyncReadyCallback callback,
gpointer user_data
)
Description
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
Parameters
connection-
Type:
GTlsConnectionA
GTlsConnectionobject.The data is owned by the caller of the method. flags-
Type:
GTlsCertificateRequestFlagsFlags providing more information about the request.
cancellable-
Type:
GCancellableAn optional
GCancellablecancellation object.The argument can be NULL.The data is owned by the caller of the method. callback-
Type:
GAsyncReadyCallbackWill be called when the interaction completes.
user_data-
Type:
gpointerData to pass to the
callback.The argument can be NULL.The data is owned by the caller of the method.