trust_prompt_run_for_source


Description:


[ Version ( since = "3.16" ) ]
public async bool trust_prompt_run_for_source (Window parent, Source source, string certificate_pem, TlsCertificateFlags certificate_errors, string? error_text, bool allow_source_save, Cancellable? cancellable) throws Error

Similar to 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 trust_prompt_run_for_source.end, 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 REJECT.

Parameters:

parent

A Window to use as a parent for the trust prompt dialog

source

an Source, with e_source_extension_authentication

certificate_pem

a PEM-encoded certificate for which to show the trust prompt

certificate_errors

errors of the certificate_pem

error_text

an optional error text to show in the dialog; can be null

allow_source_save

whether can also save any source changes

cancellable

a Cancellable, or null

callback

a callback to call, when the prompt (an source save) is done

user_data

user data passed into callback


Namespace: E