1 | /* GIO - GLib Input, Output and Streaming Library |
2 | * |
3 | * Copyright (C) 2011 Collabora Ltd. |
4 | * |
5 | * This library is free software; you can redistribute it and/or |
6 | * modify it under the terms of the GNU Lesser General Public |
7 | * License as published by the Free Software Foundation; either |
8 | * version 2.1 of the License, or (at your option) any later version. |
9 | * |
10 | * This library 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 GNU |
13 | * Lesser General Public License for more details. |
14 | * |
15 | * You should have received a copy of the GNU Lesser General |
16 | * Public License along with this library; if not, see <http://www.gnu.org/licenses/>. |
17 | */ |
18 | |
19 | #ifndef __G_TEST_TLS_BACKEND_H__ |
20 | #define __G_TEST_TLS_BACKEND_H__ |
21 | |
22 | #include <gio/gio.h> |
23 | |
24 | G_BEGIN_DECLS |
25 | |
26 | #define G_TYPE_TEST_TLS_BACKEND (_g_test_tls_backend_get_type ()) |
27 | #define G_TEST_TLS_BACKEND(o) (G_TYPE_CHECK_INSTANCE_CAST ((o), G_TYPE_TEST_TLS_BACKEND, GTestTlsBackend)) |
28 | #define G_TEST_TLS_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_CAST((k), G_TYPE_TEST_TLS_BACKEND, GTestTlsBackendClass)) |
29 | #define G_IS_TEST_TLS_BACKEND(o) (G_TYPE_CHECK_INSTANCE_TYPE ((o), G_TYPE_TEST_TLS_BACKEND)) |
30 | #define G_IS_TEST_TLS_BACKEND_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), G_TYPE_TEST_TLS_BACKEND)) |
31 | #define G_TEST_TLS_BACKEND_GET_CLASS(o) (G_TYPE_INSTANCE_GET_CLASS ((o), G_TYPE_TEST_TLS_BACKEND, GTestTlsBackendClass)) |
32 | |
33 | typedef struct _GTestTlsBackend GTestTlsBackend; |
34 | typedef struct _GTestTlsBackendClass GTestTlsBackendClass; |
35 | |
36 | struct _GTestTlsBackendClass { |
37 | GObjectClass parent_class; |
38 | }; |
39 | |
40 | GType _g_test_tls_backend_get_type (void); |
41 | |
42 | const gchar *g_test_tls_connection_get_private_key_pem (GTlsCertificate *cert); |
43 | |
44 | |
45 | G_END_DECLS |
46 | |
47 | #endif /* __G_TEST_TLS_BACKEND_H__ */ |
48 | |