# Process this file with autoconf to produce a configure script.
AC_PREREQ([2.60])
-AC_INIT([gsignond], [0.0.3],[],[],[http://01.org/gsso])
+AC_INIT([gsignond], [0.0.4],[],[],[http://01.org/gsso])
AC_CONFIG_SRCDIR([src/daemon/main.c])
AC_CONFIG_HEADERS([config.h])
AC_CONFIG_AUX_DIR([build-aux])
+gsignond (0.0.4-3) unstable; urgency=low
+
+ * Update to 0.0.4
+
+ -- Jussi Laako <jussi.laako@linux.intel.com> Fri, 28 Feb 2014 15:44:00 +0200
+
+gsignond (0.0.3-2) unstable; urgency=low
+
+ * Minor update
+
+ -- Jussi Laako <jussi.laako@linux.intel.com> Wed, 08 Jan 2014 17:37:00 +0200
+
gsignond (0.0.3-1) unstable; urgency=low
* Bug fixes in UI interaction
Name: gsignond
Summary: GLib based Single Sign-On daemon
-Version: 0.0.3
-Release: 1
+Version: 0.0.4
+Release: 2
Group: System/Daemons
License: LGPL-2.1+
Source: %{name}-%{version}.tar.gz
%changelog
+* Fri Feb 28 2014 Jussi Laako <jussi.laako@linux.intel.com>
+- Release 0.0.4
+
* Thu Aug 22 2013 Amarnath Valluri <amarnath.valluri@linux.intel.com>
- Release 0.0.3
- Bug fixes in UI interaction
+* Fri Feb 28 2014 Jussi Laako <jussi.laako@linux.intel.com>
+- Release 0.0.4
+
* Thu Aug 22 2013 Amarnath Valluri <amarnath.valluri@linux.intel.com>
- Release 0.0.3
- Bug fixes in UI interaction
Name: gsignond
Summary: GLib based Single Sign-On daemon
-Version: 0.0.3
-Release: 1
+Version: 0.0.4
+Release: 2
Group: System/Daemons
License: LGPL-2.1+
Source: %{name}-%{version}.tar.gz
/*
* This file is part of gsignond
*
- * Copyright (C) 2012 Intel Corporation.
+ * Copyright (C) 2012-2014 Intel Corporation.
*
* Contact: Alexander Kanavin <alex.kanavin@gmail.com>
*
// make a flat list of available plugin types
int n_plugins = g_hash_table_size(self->methods_to_mechanisms);
- self->methods = g_malloc0(sizeof(gchar*) * (n_plugins + 1));
+ self->methods = g_new0(gchar*, n_plugins + 1);
gchar **method_iter = self->methods;
GList* keys = g_hash_table_get_keys(self->methods_to_mechanisms);
/*
* This file is part of gsignond
*
- * Copyright (C) 2012 Intel Corporation.
+ * Copyright (C) 2012-2014 Intel Corporation.
*
* Contact: Alexander Kanavin <alex.kanavin@gmail.com>
*
"mechanisms", value);
break;
case PROP_LOADERPATH:
- g_value_set_object (value, priv->loader_path);
+ g_value_set_string (value, priv->loader_path);
break;
default:
G_OBJECT_WARN_INVALID_PROPERTY_ID (object, prop_id, pspec);
/*
* This file is part of gsignond
*
- * Copyright (C) 2013 Intel Corporation.
+ * Copyright (C) 2013-2014 Intel Corporation.
*
* Contact: Imran Zaman <imran.zaman@intel.com>
*
signal(SIGPIPE, SIG_IGN);
/* Spawn child process */
- argv = g_malloc0 ((2 + 1) * sizeof (gchar *));
+ argv = g_new0 (gchar *, 2 + 1);
argv[0] = g_strdup(loader_path);
argv[1] = g_strdup_printf("--load-plugin=%s",plugin_type);
ret = g_spawn_async_with_pipes (NULL, argv, NULL,
/*
* This file is part of gsignond
*
- * Copyright (C) 2013 Intel Corporation.
+ * Copyright (C) 2013-2014 Intel Corporation.
*
* Contact: Imran Zaman <imran.zaman@intel.com>
*
GSIGNOND_TYPE_PLUGIN_DAEMON, NULL));
/* Load plugin */
- daemon->priv->plugin = gsignond_load_plugin_with_filename (
- (gchar *)plugin_type, (gchar*)filename);
+ daemon->priv->plugin = gsignond_load_plugin_with_filename (plugin_type,
+ filename);
if (!daemon->priv->plugin) {
DBG ("failed to load plugin");
g_object_unref (daemon);
/*
* This file is part of gsignond
*
- * Copyright (C) 2012 Intel Corporation.
+ * Copyright (C) 2012-2014 Intel Corporation.
*
* Contact: Alexander Kanavin <alex.kanavin@gmail.com>
*
#include "gsignond/gsignond-log.h"
#include "gsignond-plugin-loader.h"
-GSignondPlugin*
-gsignond_load_plugin(
+GSignondPlugin *
+gsignond_load_plugin (
GSignondConfig* config,
- gchar* plugin_type)
+ const gchar *plugin_type)
{
const gchar *plugin_path = GSIGNOND_GPLUGINS_DIR;
gchar *plugin_filename;
return plugin;
}
-GSignondPlugin*
+GSignondPlugin *
gsignond_load_plugin_with_filename(
- gchar *plugin_type,
- gchar *plugin_filename)
+ const gchar *plugin_type,
+ const gchar *plugin_filename)
{
DBG("Loading plugin %s", plugin_filename);
GModule* plugin_module = g_module_open (plugin_filename,
/*
* This file is part of gsignond
*
- * Copyright (C) 2012 Intel Corporation.
+ * Copyright (C) 2012-2014 Intel Corporation.
*
* Contact: Alexander Kanavin <alex.kanavin@gmail.com>
*
G_BEGIN_DECLS
-GSignondPlugin*
-gsignond_load_plugin(
+GSignondPlugin *
+gsignond_load_plugin (
GSignondConfig* config,
- gchar* plugin_type);
+ const gchar *plugin_type);
-GSignondPlugin*
-gsignond_load_plugin_with_filename(
- gchar *plugin_type,
- gchar *plugin_filename);
+GSignondPlugin *
+gsignond_load_plugin_with_filename (
+ const gchar *plugin_type,
+ const gchar *plugin_filename);
G_END_DECLS
/*
* This file is part of gsignond
*
- * Copyright (C) 2013 Intel Corporation.
+ * Copyright (C) 2013-2014 Intel Corporation.
*
* Contact: Imran Zaman <imran.zaman@intel.com>
*
return;
}
- int n_plugins = 0;
- while (g_dir_read_name(plugin_dir) != NULL)
- n_plugins++;
- g_dir_rewind(plugin_dir);
-
while (1) {
const gchar* plugin_soname = g_dir_read_name(plugin_dir);
if (plugin_soname == NULL)
const gchar *env_val = g_getenv("SSO_GPLUGINS_DIR");
if (env_val)
plugin_path = env_val;
-#endif
+# endif
gchar* filename = g_module_build_path (plugin_path, plugin_name);
_daemon = gsignond_plugin_daemon_new (filename, plugin_name, in_fd,