410b0fbe6c76f87825a5d03f1c1931f4674ddc1a
[platform/upstream/glib-networking.git] / tls / openssl / gtlsbackend-openssl.h
1 /*
2  * gtlsbackend-openssl.h
3  *
4  * Copyright (C) 2015 NICE s.r.l.
5  *
6  * This file is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This file is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public License
17  * along with this program. If not, see <http://www.gnu.org/licenses/>.
18  *
19  * In addition, when the library is used with OpenSSL, a special
20  * exception applies. Refer to the LICENSE_EXCEPTION file for details.
21  *
22  * Authors: Ignacio Casal Quinteiro
23  */
24
25 #ifndef __G_TLS_BACKEND_OPENSSL_H__
26 #define __G_TLS_BACKEND_OPENSSL_H__
27
28 #include <gio/gio.h>
29
30 G_BEGIN_DECLS
31
32 #define G_TYPE_TLS_BACKEND_OPENSSL (g_tls_backend_openssl_get_type ())
33 G_DECLARE_DERIVABLE_TYPE (GTlsBackendOpenssl, g_tls_backend_openssl,
34                           G, TLS_BACKEND_OPENSSL, GObject)
35
36 struct _GTlsBackendOpensslClass
37 {
38   GObjectClass parent_class;
39
40   GTlsDatabase*   (*create_database)      (GTlsBackendOpenssl         *backend,
41                                            GError                    **error);
42 };
43
44 void    g_tls_backend_openssl_register       (GIOModule *module);
45
46 G_END_DECLS
47
48 #endif /* __G_TLS_BACKEND_OPENSSL_H___ */