I#27 - [IMAPx] Ignore DavMail's CR/LF in BODYSTRUCTURE response
[evolution-data-server.git] / src / libedataserverui / e-trust-prompt.h
blob657775e177f74e137f60a38b567d7194f494897e
1 /*
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
11 * for more details.
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."
20 #endif
22 #ifndef E_TRUST_PROMPT_H
23 #define E_TRUST_PROMPT_H
25 #include <glib.h>
26 #include <gio/gio.h>
28 #include <gtk/gtk.h>
30 #include <libedataserver/libedataserver.h>
32 G_BEGIN_DECLS
34 gchar * e_trust_prompt_describe_certificate_errors
35 (GTlsCertificateFlags flags);
36 ETrustPromptResponse
37 e_trust_prompt_run_modal(GtkWindow *parent,
38 const gchar *source_extension,
39 const gchar *source_display_name,
40 const gchar *host,
41 const gchar *certificate_pem,
42 GTlsCertificateFlags certificate_errors,
43 const gchar *error_text);
45 void e_trust_prompt_run_for_source
46 (GtkWindow *parent,
47 ESource *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,
54 gpointer user_data);
55 gboolean e_trust_prompt_run_for_source_finish
56 (ESource *source,
57 GAsyncResult *result,
58 ETrustPromptResponse *response,
59 GError **error);
61 G_END_DECLS
63 #endif /* E_TRUST_PROMPT_H */