TlsInteraction.requestCertificateAsync

void requestCertificateAsync(gio.tls_connection.TlsConnection connection, gio.types.TlsCertificateRequestFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)

Run asynchronous interaction to ask the user for a certificate to use with the connection. In general, [gio.tls_interaction.TlsInteraction.invokeRequestCertificate] 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.

Parameters

connectiona #GTlsConnection object
flagsflags providing more information about the request
cancellablean optional #GCancellable cancellation object
callbackwill be called when the interaction completes