1 /*
2  * This file is part of gtkD.
3  *
4  * gtkD is free software; you can redistribute it and/or modify
5  * it under the terms of the GNU Lesser General Public License
6  * as published by the Free Software Foundation; either version 3
7  * of the License, or (at your option) any later version, with
8  * some exceptions, please read the COPYING file.
9  *
10  * gtkD is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU Lesser General Public License for more details.
14  *
15  * You should have received a copy of the GNU Lesser General Public License
16  * along with gtkD; if not, write to the Free Software
17  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110, USA
18  */
19 
20 // generated automatically - do not change
21 // find conversion definition on APILookup.txt
22 // implement new conversion functionalities on the wrap.utils pakage
23 
24 
25 module gio.TlsBackendIF;
26 
27 private import gio.TlsBackend;
28 private import gio.TlsBackendIF;
29 private import gio.TlsDatabase;
30 private import gobject.ObjectG;
31 private import gtkc.gio;
32 public  import gtkc.giotypes;
33 
34 
35 /**
36  * TLS (Transport Layer Security, aka SSL) backend. This is an
37  * internal type used to coordinate the different classes implemented
38  * by a TLS backend.
39  *
40  * Since: 2.28
41  */
42 public interface TlsBackendIF{
43 	/** Get the main Gtk struct */
44 	public GTlsBackend* getTlsBackendStruct();
45 
46 	/** the main Gtk struct as a void* */
47 	protected void* getStruct();
48 
49 	/**
50 	 */
51 
52 	/**
53 	 * Gets the default #GTlsBackend for the system.
54 	 *
55 	 * Return: a #GTlsBackend
56 	 *
57 	 * Since: 2.28
58 	 */
59 	public static TlsBackendIF getDefault();
60 
61 	/**
62 	 * Gets the #GType of @backend's #GTlsCertificate implementation.
63 	 *
64 	 * Return: the #GType of @backend's #GTlsCertificate
65 	 *     implementation.
66 	 *
67 	 * Since: 2.28
68 	 */
69 	public GType getCertificateType();
70 
71 	/**
72 	 * Gets the #GType of @backend's #GTlsClientConnection implementation.
73 	 *
74 	 * Return: the #GType of @backend's #GTlsClientConnection
75 	 *     implementation.
76 	 *
77 	 * Since: 2.28
78 	 */
79 	public GType getClientConnectionType();
80 
81 	/**
82 	 * Gets the default #GTlsDatabase used to verify TLS connections.
83 	 *
84 	 * Return: the default database, which should be
85 	 *     unreffed when done.
86 	 *
87 	 * Since: 2.30
88 	 */
89 	public TlsDatabase getDefaultDatabase();
90 
91 	/**
92 	 * Gets the #GType of @backend's #GTlsFileDatabase implementation.
93 	 *
94 	 * Return: the #GType of backend's #GTlsFileDatabase implementation.
95 	 *
96 	 * Since: 2.30
97 	 */
98 	public GType getFileDatabaseType();
99 
100 	/**
101 	 * Gets the #GType of @backend's #GTlsServerConnection implementation.
102 	 *
103 	 * Return: the #GType of @backend's #GTlsServerConnection
104 	 *     implementation.
105 	 *
106 	 * Since: 2.28
107 	 */
108 	public GType getServerConnectionType();
109 
110 	/**
111 	 * Checks if TLS is supported; if this returns %FALSE for the default
112 	 * #GTlsBackend, it means no "real" TLS backend is available.
113 	 *
114 	 * Return: whether or not TLS is supported
115 	 *
116 	 * Since: 2.28
117 	 */
118 	public bool supportsTls();
119 }