Moving attr-sql config in strongswan.conf to libhydra.
authorTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 10:26:37 +0000 (11:26 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 17:53:09 +0000 (18:53 +0100)
src/libhydra/plugins/attr_sql/attr_sql_plugin.c
src/libhydra/plugins/attr_sql/pool.c
src/libhydra/plugins/attr_sql/sql_attribute.c

index 5d3d737..981af98 100644 (file)
@@ -62,7 +62,7 @@ plugin_t *attr_sql_plugin_create()
        char *uri;
        private_attr_sql_plugin_t *this;
 
-       uri = lib->settings->get_str(lib->settings, "libstrongswan.plugins.attr-sql.database", NULL);
+       uri = lib->settings->get_str(lib->settings, "libhydra.plugins.attr-sql.database", NULL);
        if (!uri)
        {
                DBG1("attr-sql plugin: database URI not set");
index 5ecf80b..fed89fc 100644 (file)
@@ -1381,10 +1381,10 @@ int main(int argc, char *argv[])
                exit(SS_RC_INITIALIZATION_FAILED);
        }
 
-       uri = lib->settings->get_str(lib->settings, "libstrongswan.plugins.attr-sql.database", NULL);
+       uri = lib->settings->get_str(lib->settings, "libhydra.plugins.attr-sql.database", NULL);
        if (!uri)
        {
-               fprintf(stderr, "database URI libstrongswan.plugins.attr-sql.database not set.\n");
+               fprintf(stderr, "database URI libhydra.plugins.attr-sql.database not set.\n");
                exit(SS_RC_INITIALIZATION_FAILED);
        }
        db = lib->db->create(lib->db, uri);
index a89195b..9a2108e 100644 (file)
@@ -366,7 +366,7 @@ sql_attribute_t *sql_attribute_create(database_t *db)
 
        this->db = db;
        this->history = lib->settings->get_bool(lib->settings,
-                                               "libstrongswan.plugins.attr-sql.lease_history", TRUE);
+                                               "libhydra.plugins.attr-sql.lease_history", TRUE);
 
        /* close any "online" leases in the case we crashed */
        if (this->history)