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