1 /* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
3 * GIO - GLib Input, Output and Streaming Library
5 * Copyright 2010 Red Hat, Inc.
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
17 * You should have received a copy of the GNU Lesser General
18 * Public License along with this library; if not, see
19 * <http://www.gnu.org/licenses/>.
21 * In addition, when the library is used with OpenSSL, a special
22 * exception applies. Refer to the LICENSE_EXCEPTION file for details.
28 #include <glib/gi18n-lib.h>
30 #include "gtlsbackend-gnutls.h"
34 g_io_gnutls_load (GIOModule *module)
41 g_tls_backend_gnutls_register (module);
44 base_dir = g_win32_get_package_installation_directory_of_module (NULL);
45 locale_dir = g_build_filename (base_dir, "share", "locale", NULL);
48 locale_dir = g_strdup (LOCALE_DIR);
51 bindtextdomain (GETTEXT_PACKAGE, locale_dir);
52 bind_textdomain_codeset (GETTEXT_PACKAGE, "UTF-8");
57 g_io_gnutls_unload (GIOModule *module)
61 G_MODULE_EXPORT gchar **
62 g_io_gnutls_query (void)
65 G_TLS_BACKEND_EXTENSION_POINT_NAME,
68 return g_strdupv (eps);