4 * Copyright (C) 2015 NICE s.r.l.
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.
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.
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/>.
19 * In addition, when the library is used with OpenSSL, a special
20 * exception applies. Refer to the LICENSE_EXCEPTION file for details.
22 * Authors: Ignacio Casal Quinteiro
27 #include <glib/gi18n-lib.h>
30 #include "gtlsbackend-openssl.h"
34 g_io_openssl_load (GIOModule *module)
41 g_tls_backend_openssl_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_openssl_unload (GIOModule *module)
61 G_MODULE_EXPORT gchar **
62 g_io_openssl_query (void)
64 return g_strsplit (G_TLS_BACKEND_EXTENSION_POINT_NAME, "!", -1);