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
37  *
38  * Since: 2.28
39  */
40 public interface TlsBackendIF{
41 	/** Get the main Gtk struct */
42 	public GTlsBackend* getTlsBackendStruct();
43 
44 	/** the main Gtk struct as a void* */
45 	protected void* getStruct();
46 
47 
48 	/**
49 	 * Gets the default #GTlsBackend for the system.
50 	 *
51 	 * Return: a #GTlsBackend
52 	 *
53 	 * Since: 2.28
54 	 */
55 	public static TlsBackendIF getDefault();
56 
57 	/**
58 	 * Gets the #GType of @backend's #GTlsCertificate implementation.
59 	 *
60 	 * Return: the #GType of @backend's #GTlsCertificate
61 	 *     implementation.
62 	 *
63 	 * Since: 2.28
64 	 */
65 	public GType getCertificateType();
66 
67 	/**
68 	 * Gets the #GType of @backend's #GTlsClientConnection implementation.
69 	 *
70 	 * Return: the #GType of @backend's #GTlsClientConnection
71 	 *     implementation.
72 	 *
73 	 * Since: 2.28
74 	 */
75 	public GType getClientConnectionType();
76 
77 	/**
78 	 * Gets the default #GTlsDatabase used to verify TLS connections.
79 	 *
80 	 * Return: the default database, which should be
81 	 *     unreffed when done.
82 	 *
83 	 * Since: 2.30
84 	 */
85 	public TlsDatabase getDefaultDatabase();
86 
87 	/** */
88 	public GType getDtlsClientConnectionType();
89 
90 	/** */
91 	public GType getDtlsServerConnectionType();
92 
93 	/**
94 	 * Gets the #GType of @backend's #GTlsFileDatabase implementation.
95 	 *
96 	 * Return: the #GType of backend's #GTlsFileDatabase implementation.
97 	 *
98 	 * Since: 2.30
99 	 */
100 	public GType getFileDatabaseType();
101 
102 	/**
103 	 * Gets the #GType of @backend's #GTlsServerConnection implementation.
104 	 *
105 	 * Return: the #GType of @backend's #GTlsServerConnection
106 	 *     implementation.
107 	 *
108 	 * Since: 2.28
109 	 */
110 	public GType getServerConnectionType();
111 
112 	/** */
113 	public bool supportsDtls();
114 
115 	/**
116 	 * Checks if TLS is supported; if this returns %FALSE for the default
117 	 * #GTlsBackend, it means no "real" TLS backend is available.
118 	 *
119 	 * Return: whether or not TLS is supported
120 	 *
121 	 * Since: 2.28
122 	 */
123 	public bool supportsTls();
124 }