TlsInteraction.askPassword

Run synchronous interaction to ask the user for a password. In general, TlsInteraction.invokeAskPassword should be used instead of this function.

Derived subclasses usually implement a password prompt, although they may also choose to provide a password from elsewhere. The password value will be filled in and then callback will be called. Alternatively the user may abort this password request, which will usually abort the TLS connection.

If the interaction is cancelled by the cancellation object, or by the user then G_TLS_INTERACTION_FAILED will be returned with an error that contains a G_IO_ERROR_CANCELLED error code. Certain implementations may not support immediate cancellation.

Parameters

password TlsPassword
cancellable Cancellable

an optional gio.Cancellable cancellation object

Return Value

The status of the ask password interaction.

Throws

GException on failure.

Meta

Since

2.30