Add a GNUTLS-based GTlsBackend
[platform/upstream/glib-networking.git] / tls / gnutls / gnutls-module.c
1 /* GIO - GLib Input, Output and Streaming Library
2  *
3  * Copyright (C) 2010 Red Hat, Inc.
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 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, write to the
17  * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
18  * Boston, MA 02111-1307, USA.
19  */
20
21 #include "config.h"
22
23 #include <gio/gio.h>
24
25 #include "gtlsbackend-gnutls.h"
26
27
28 void
29 g_io_module_load (GIOModule *module)
30 {
31   g_tls_backend_gnutls_register (module);
32 }
33
34 void
35 g_io_module_unload (GIOModule *module)
36 {
37 }
38
39 gchar **
40 g_io_module_query (void)
41 {
42   gchar *eps[] = {
43     G_TLS_BACKEND_EXTENSION_POINT_NAME,
44     NULL
45   };
46   return g_strdupv (eps);
47 }