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) and DTLS 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 	 * Gets the #GType of @backend’s #GDtlsClientConnection implementation.
89 	 *
90 	 * Return: the #GType of @backend’s #GDtlsClientConnection
91 	 *     implementation.
92 	 *
93 	 * Since: 2.48
94 	 */
95 	public GType getDtlsClientConnectionType();
96 
97 	/**
98 	 * Gets the #GType of @backend’s #GDtlsServerConnection implementation.
99 	 *
100 	 * Return: the #GType of @backend’s #GDtlsServerConnection
101 	 *     implementation.
102 	 *
103 	 * Since: 2.48
104 	 */
105 	public GType getDtlsServerConnectionType();
106 
107 	/**
108 	 * Gets the #GType of @backend's #GTlsFileDatabase implementation.
109 	 *
110 	 * Return: the #GType of backend's #GTlsFileDatabase implementation.
111 	 *
112 	 * Since: 2.30
113 	 */
114 	public GType getFileDatabaseType();
115 
116 	/**
117 	 * Gets the #GType of @backend's #GTlsServerConnection implementation.
118 	 *
119 	 * Return: the #GType of @backend's #GTlsServerConnection
120 	 *     implementation.
121 	 *
122 	 * Since: 2.28
123 	 */
124 	public GType getServerConnectionType();
125 
126 	/**
127 	 * Checks if DTLS is supported. DTLS support may not be available even if TLS
128 	 * support is available, and vice-versa.
129 	 *
130 	 * Return: whether DTLS is supported
131 	 *
132 	 * Since: 2.48
133 	 */
134 	public bool supportsDtls();
135 
136 	/**
137 	 * Checks if TLS is supported; if this returns %FALSE for the default
138 	 * #GTlsBackend, it means no "real" TLS backend is available.
139 	 *
140 	 * Return: whether or not TLS is supported
141 	 *
142 	 * Since: 2.28
143 	 */
144 	public bool supportsTls();
145 }