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>
34 gchar
* e_trust_prompt_describe_certificate_errors
35 (GTlsCertificateFlags flags
);
37 e_trust_prompt_run_modal(GtkWindow
*parent
,
38 const gchar
*source_extension
,
39 const gchar
*source_display_name
,
41 const gchar
*certificate_pem
,
42 GTlsCertificateFlags certificate_errors
,
43 const gchar
*error_text
);
45 void e_trust_prompt_run_for_source
48 const gchar
*certificate_pem
,
49 GTlsCertificateFlags certificate_errors
,
50 const gchar
*error_text
,
51 gboolean allow_source_save
,
52 GCancellable
*cancellable
,
53 GAsyncReadyCallback callback
,
55 gboolean e_trust_prompt_run_for_source_finish
58 ETrustPromptResponse
*response
,
63 #endif /* E_TRUST_PROMPT_H */