2
* Copyright (C) 2015 Red Hat, Inc. (www.redhat.com)
4
* This library is free software: you can redistribute it and/or modify it
5
* under the terms of the GNU Lesser General Public License as published by
6
* the Free Software Foundation.
8
* This library is distributed in the hope that it will be useful, but
9
* WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
10
* or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License
13
* You should have received a copy of the GNU Lesser General Public License
14
* along with this library. If not, see <http://www.gnu.org/licenses/>.
18
#if !defined (__LIBEDATASERVERUI_H_INSIDE__) && !defined (LIBEDATASERVERUI_COMPILATION)
19
#error "Only <libedataserverui/libedataserverui.h> should be included directly."
22
#ifndef E_TRUST_PROMPT_H
23
#define E_TRUST_PROMPT_H
30
#include <libedataserver/libedataserver.h>
32
gchar * e_trust_prompt_describe_certificate_errors
33
(GTlsCertificateFlags certificate_errors);
35
e_trust_prompt_run_modal(GtkWindow *parent,
36
const gchar *source_extension,
37
const gchar *source_display_name,
39
const gchar *certificate_pem,
40
GTlsCertificateFlags certificate_errors,
41
const gchar *error_text);
43
void e_trust_prompt_run_for_source
46
const gchar *certificate_pem,
47
GTlsCertificateFlags certificate_errors,
48
const gchar *error_text,
49
gboolean allow_source_save,
50
GCancellable *cancellable,
51
GAsyncReadyCallback callback,
53
gboolean e_trust_prompt_run_for_source_finish
56
ETrustPromptResponse *response,
59
#endif /* E_TRUST_PROMPT_H */