a #GTlsCertificateFlags to describe
Similar to e_trust_prompt_run_modal(), except it also manages all the necessary things
around the source<
!-- -->'s SSL/TLS trust properties when it also contains %E_SOURCE_EXTENSION_WEBDAV,
thus the SSL/TLS trust on the WebDAV source
is properly updated based on the user's choice.
The call is finished with e_trust_prompt_run_for_source_finish(),
which also returns the user's choice. The finish happens in the callback
.
This is necessary, because the source
can be also saved.
The function fails, if the source
doesn't contain the %E_SOURCE_EXTENSION_AUTHENTICATION.
Note: The dialog is not shown when the stored certificate trust in the WebDAV source
matches the certificate_pem
and the stored result is #E_TRUST_PROMPT_RESPONSE_REJECT.
A #GtkWindow to use as a parent for the trust prompt dialog
an #ESource, with %E_SOURCE_EXTENSION_AUTHENTICATION
a PEM-encoded certificate for which to show the trust prompt
errors of the certificate_pem
an optional error text to show in the dialog; can be %NULL
whether can also save any source
changes
a #GCancellable, or %NULL
a callback to call, when the prompt (an source
save) is done
Finishes the operation started with e_trust_prompt_run_for_source().
The response
will contain a code of the user's choice.
The #E_TRUST_PROMPT_RESPONSE_UNKNOWN is used, when the user cancelled the trust
prompt dialog and no changes are made with the source
.
If an error occurs, the function sets error
and returns %FALSE.
an #ESource which was used with e_trust_prompt_run_for_source()
a #GAsyncResult
an output argument, user's response to the trust prompt
Runs modal (doesn't return until the dialog is closed) a trust prompt dialog,
it is a prompt whether a user wants to accept or reject the certificate_pem
for the host
due to the certificate_errors
errors.
The pair source_extension
and source_display_name
influences the trust prompt message.
If both are set, then the message also contains which source failed to connect according
to these two arguments.
The dialog can contain a custom error text, passed in as error_text
.
The error might be a detailed error string returned by the server. If set,
it is prefixed with "Detailed error:" string.
A #GtkWindow to use as a parent for the trust prompt dialog
an #ESource extension, to identify a kind of the source; or %NULL
an #ESource display name, to identify what prompts; or %NULL
a host name to which the certificate belongs
a PEM-encoded certificate for which to show the trust prompt
errors of the certificate_pem
an optional error text to show in the dialog; can be %NULL
Converts
flags
into a localized text description of the set bits, one bit description per line. If no bit is set, then an empty string is returned.