]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
Changed all usages of lib->attributes to hydra->attributes.
authorTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 16:46:29 +0000 (17:46 +0100)
committerTobias Brunner <tobias@strongswan.org>
Wed, 24 Mar 2010 17:54:26 +0000 (18:54 +0100)
46 files changed:
src/libcharon/Makefile.am
src/libcharon/plugins/android/Makefile.am
src/libcharon/plugins/android/android_plugin.c
src/libcharon/plugins/attr/Makefile.am
src/libcharon/plugins/attr/attr_plugin.c
src/libcharon/plugins/eap_aka/Makefile.am
src/libcharon/plugins/eap_aka_3gpp2/Makefile.am
src/libcharon/plugins/eap_gtc/Makefile.am
src/libcharon/plugins/eap_identity/Makefile.am
src/libcharon/plugins/eap_md5/Makefile.am
src/libcharon/plugins/eap_mschapv2/Makefile.am
src/libcharon/plugins/eap_radius/Makefile.am
src/libcharon/plugins/eap_sim/Makefile.am
src/libcharon/plugins/eap_sim_file/Makefile.am
src/libcharon/plugins/eap_simaka_pseudonym/Makefile.am
src/libcharon/plugins/eap_simaka_reauth/Makefile.am
src/libcharon/plugins/kernel_klips/Makefile.am
src/libcharon/plugins/kernel_netlink/Makefile.am
src/libcharon/plugins/kernel_pfkey/Makefile.am
src/libcharon/plugins/kernel_pfroute/Makefile.am
src/libcharon/plugins/load_tester/Makefile.am
src/libcharon/plugins/medcli/Makefile.am
src/libcharon/plugins/medsrv/Makefile.am
src/libcharon/plugins/nm/Makefile.am
src/libcharon/plugins/nm/nm_plugin.c
src/libcharon/plugins/resolve/Makefile.am
src/libcharon/plugins/resolve/resolve_plugin.c
src/libcharon/plugins/smp/Makefile.am
src/libcharon/plugins/socket_default/Makefile.am
src/libcharon/plugins/socket_dynamic/Makefile.am
src/libcharon/plugins/socket_raw/Makefile.am
src/libcharon/plugins/sql/Makefile.am
src/libcharon/plugins/stroke/Makefile.am
src/libcharon/plugins/stroke/stroke_socket.c
src/libcharon/plugins/uci/Makefile.am
src/libcharon/plugins/unit_tester/Makefile.am
src/libcharon/plugins/unit_tester/tests/test_pool.c
src/libcharon/plugins/updown/Makefile.am
src/libcharon/sa/ike_sa.c
src/libcharon/sa/ike_sa.h
src/libcharon/sa/tasks/ike_config.c
src/libhydra/plugins/attr_sql/Makefile.am
src/libhydra/plugins/attr_sql/attr_sql_plugin.c
src/libsimaka/Makefile.am
src/pluto/connections.c
src/pluto/modecfg.c

index f8dd0e5e9db07071a585cb77c27389e9f746ab2d..01a5df03a8de31b1f5c849b0d489b705e9a6faed 100644 (file)
@@ -100,10 +100,16 @@ credentials/sets/ocsp_response_wrapper.c credentials/sets/ocsp_response_wrapper.
 credentials/sets/cert_cache.c credentials/sets/cert_cache.h \
 credentials/credential_set.h
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = \
+       -I${linux_headers} \
+       -I$(top_srcdir)/src/libstrongswan \
+       -I$(top_srcdir)/src/libhydra \
+       -I$(top_srcdir)/src/libcharon
+
 AM_CFLAGS = \
-  -DIPSEC_DIR=\"${ipsecdir}\" \
-  -DIPSEC_PIDDIR=\"${piddir}\"
+       -DIPSEC_DIR=\"${ipsecdir}\" \
+       -DIPSEC_PIDDIR=\"${piddir}\"
+
 libcharon_la_LIBADD = -lm $(PTHREADLIB) $(DLLIB) $(SOCKLIB)
 
 EXTRA_DIST = Android.mk
index 5c6c3f731f7bf61f351c02da73f7f1e8a5919d6a..df1c54d01bdf204c4881a3b4e3b7f2694fec443d 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index f21066a270652c3d37f9efce114dc4879720ea06..9a558f53b15e847a5b720d97736627e628ac5009 100644 (file)
@@ -16,7 +16,7 @@
 #include "android_plugin.h"
 #include "android_handler.h"
 
-#include <library.h>
+#include <hydra.h>
 #include <daemon.h>
 
 typedef struct private_android_plugin_t private_android_plugin_t;
@@ -40,7 +40,7 @@ struct private_android_plugin_t {
 METHOD(plugin_t, destroy, void,
        private_android_plugin_t *this)
 {
-       lib->attributes->remove_handler(lib->attributes, &this->handler->handler);
+       hydra->attributes->remove_handler(hydra->attributes, &this->handler->handler);
        this->handler->destroy(this->handler);
        free(this);
 }
@@ -59,7 +59,7 @@ plugin_t *android_plugin_create()
                .handler = android_handler_create(),
        );
 
-       lib->attributes->add_handler(lib->attributes, &this->handler->handler);
+       hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
 
        return &this->public.plugin;
 }
index 917c1263d21f0cd19ea79c96f81680c8970207a4..2a1e9b5546f51aae14257a5ad7057e31700c9497 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 9325fc1521bacd421488fc4ae3ad4ead729d2cee..24c00bb442e01a79f1a48a2afca44f4e635eb94d 100644 (file)
@@ -16,7 +16,7 @@
 #include "attr_plugin.h"
 #include "attr_provider.h"
 
-#include <daemon.h>
+#include <hydra.h>
 
 typedef struct private_attr_plugin_t private_attr_plugin_t;
 
@@ -41,7 +41,7 @@ struct private_attr_plugin_t {
  */
 static void destroy(private_attr_plugin_t *this)
 {
-       lib->attributes->remove_provider(lib->attributes, &this->provider->provider);
+       hydra->attributes->remove_provider(hydra->attributes, &this->provider->provider);
        this->provider->destroy(this->provider);
        free(this);
 }
@@ -56,7 +56,7 @@ plugin_t *attr_plugin_create()
        this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
 
        this->provider = attr_provider_create();
-       lib->attributes->add_provider(lib->attributes, &this->provider->provider);
+       hydra->attributes->add_provider(hydra->attributes, &this->provider->provider);
 
        return &this->public.plugin;
 }
index b57da4c2eb11000e15763e5c941cf04ed63aadc3..e7766e88ac413d66f6e5479b990c17f8f7b68499 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon \
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon \
   -I$(top_srcdir)/src/libsimaka
 
 AM_CFLAGS = -rdynamic
index 606a52ce6226e6846e15408d0b3af66fc707bdf2..11fd816eb03d22af0d92cb83728a633d7d0f8018 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 2df288d329891a686764349956238f261046480b..c67d45f04f5462eaa43f6460eee7b79c15059398 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 66efa7b2a1a18feca7bf2b02004e2b944589ae5d..b399147dd84d20bcc404164fdff95f217101ffc8 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 85769f06eadd6f077ba7be3ce91f40c28ac6ced1..c401743ad3b5ad98ad07a6f59ba761d1dffa64ea 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 018e7134b864dd9fddfb600ebfe9fa2f9d9f9999..c2e1c9d2141d87c720288bf3a13cfbe0d2efa852 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 1ea2c4838bccb683149c490b76124d17419596c3..14a0c59309312facc7f832017b094d50117934c9 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 318643334af029d47d49c6ac7c76f9e6c0999d32..64fbb6d603a3423d522dffa1b5f2d96be94a5e12 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon \
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon \
   -I$(top_srcdir)/src/libsimaka
 
 AM_CFLAGS = -rdynamic
index 5c5699cc6eec33932e45c909f8a8e11b38d36ee7..c3bb1ed3709481607ab488bfdf073be20c4caf36 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic -DIPSEC_CONFDIR=\"${sysconfdir}\"
 
index f845f237397ffc7f886ac543cc36b6978fb4dabd..fc29f890ec49a96a5df55e5a847f98f790990462 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 92d2df45f947d86bdbe85171cd3e0c30841c5ef5..e1b0abc3d7cc79d063aff7f28cae8f5bf1c001c1 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index b5fb6d4476400158474dae0562fc52e762334f87..0de2ac2e35f8dc5f5a7860ffe19ac7a54717cbba 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 59a368a307b6d326154d2561971be4d37085650d..8284cb781d2239c8211d7bf6f3062c43bc74f811 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic \
 -DROUTING_TABLE=${routing_table} \
index 251f860a9b95054efa15c23e6c57fb15fe2db68e..9996ab309cc0bf434f48c317cbc55091d029d823 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 98d2a497a7248092fd29ec075e899713858ca2c7..e4b425944f20659a74933fc635a34322fd5e73ae 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 4bcaa36db4eedf5193777ac174d44af70f9216e9..fde89ae54307e0db6eb3118534a2b8478b8b09a3 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 513f0ec5c8be169f91ceabee96ecd29a3ddb8858..e2510d858d37ec51670011bf9475e646404f45da 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 8b65d2c9654cdfac3b54211ac8580c635c1f79f9..ab330488ac14a6c3c84d785beb31a546e873a2ec 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 5720171d0968ccc1c945dd1b79a6ecf75b3cd176..ec5fac41d38e8a7274d6ba1875c290d07ef00874 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon ${nm_CFLAGS}
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon ${nm_CFLAGS}
 
 AM_CFLAGS = -rdynamic \
   -DNM_CA_DIR=\"${nm_ca_dir}\"
index f2abcaf495c80cb4ecf182cc7c1cf8446192c1a7..6087f6589ae0b44d762e9e02482c7d30347c6261 100644 (file)
@@ -18,6 +18,7 @@
 #include "nm_creds.h"
 #include "nm_handler.h"
 
+#include <hydra.h>
 #include <daemon.h>
 #include <processing/jobs/callback_job.h>
 
@@ -84,7 +85,7 @@ static void destroy(private_nm_plugin_t *this)
                g_object_unref(this->plugin);
        }
        charon->credentials->remove_set(charon->credentials, &this->creds->set);
-       lib->attributes->remove_handler(lib->attributes, &this->handler->handler);
+       hydra->attributes->remove_handler(hydra->attributes, &this->handler->handler);
        this->creds->destroy(this->creds);
        this->handler->destroy(this->handler);
        free(this);
@@ -108,7 +109,7 @@ plugin_t *nm_plugin_create()
 
        this->creds = nm_creds_create();
        this->handler = nm_handler_create();
-       lib->attributes->add_handler(lib->attributes, &this->handler->handler);
+       hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
        charon->credentials->add_set(charon->credentials, &this->creds->set);
        this->plugin = nm_strongswan_plugin_new(this->creds, this->handler);
        if (!this->plugin)
index 8793708573d12f144bd6f6c3b6bc5047346f775a..68bc953d1d51202426365037e8e9d7a2c9d55306 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic \
   -DRESOLV_CONF=\"${resolv_conf}\"
index 4bc9a2ba800aa997a45a3d57286f7a0520d7d4a0..502129593b5ce076103922df777ea24f480314b3 100644 (file)
@@ -16,7 +16,7 @@
 #include "resolve_plugin.h"
 #include "resolve_handler.h"
 
-#include <daemon.h>
+#include <hydra.h>
 
 typedef struct private_resolve_plugin_t private_resolve_plugin_t;
 
@@ -41,7 +41,7 @@ struct private_resolve_plugin_t {
  */
 static void destroy(private_resolve_plugin_t *this)
 {
-       lib->attributes->remove_handler(lib->attributes, &this->handler->handler);
+       hydra->attributes->remove_handler(hydra->attributes, &this->handler->handler);
        this->handler->destroy(this->handler);
        free(this);
 }
@@ -55,7 +55,7 @@ plugin_t *resolve_plugin_create()
 
        this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
        this->handler = resolve_handler_create();
-       lib->attributes->add_handler(lib->attributes, &this->handler->handler);
+       hydra->attributes->add_handler(hydra->attributes, &this->handler->handler);
 
        return &this->public.plugin;
 }
index 392d49603f272d6b8330038597b98145df1a4041..4a3f26ad5d9a3c33b0a2218decec203f3296fa84 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon ${xml_CFLAGS}
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon ${xml_CFLAGS}
 
 AM_CFLAGS = -rdynamic -DIPSEC_PIDDIR=\"${piddir}\"
 
index 02f9289e875f1ce58bb9c65d22d76963f8283f38..d559122c2a14d85f7fca2d59a545c5c78a7283d8 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index c898cee618bb254a4be8c1d0cae9100a920af10b..1755870b2acd34f271f334a02697e80de13dd817 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 0d621c026948434169a1294930de25684d1bea11..f4dae9f0e37d53e89a6e4645a289e820b48710dc 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I${linux_headers} -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 940235e9f2e3d9a8d13cc850760d9c778565b781..1b0807e32b3d22d6b211e9b3255b0a68501f0b89 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic \
   -DPLUGINS=\""${libstrongswan_plugins}\""
index 004ca1b736b440500b98f28a43c204436e8f6543..4982a19b699c3709c1cacf495452fd32740cf7cb 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/stroke
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon -I$(top_srcdir)/src/stroke
 
 AM_CFLAGS = \
 -rdynamic \
index 820e097f1d2302ae90862af0be58867924bb8336..56c18da38126f7d135df70ac909399f24a4a2946 100644 (file)
@@ -25,6 +25,7 @@
 #include <errno.h>
 
 #include <processing/jobs/callback_job.h>
+#include <hydra.h>
 #include <daemon.h>
 #include <threading/thread.h>
 
@@ -624,7 +625,7 @@ static void destroy(private_stroke_socket_t *this)
        charon->credentials->remove_set(charon->credentials, &this->ca->set);
        charon->credentials->remove_set(charon->credentials, &this->cred->set);
        charon->backends->remove_backend(charon->backends, &this->config->backend);
-       lib->attributes->remove_provider(lib->attributes, &this->attribute->provider);
+       hydra->attributes->remove_provider(hydra->attributes, &this->attribute->provider);
        this->cred->destroy(this->cred);
        this->ca->destroy(this->ca);
        this->config->destroy(this->config);
@@ -659,7 +660,7 @@ stroke_socket_t *stroke_socket_create()
        charon->credentials->add_set(charon->credentials, &this->ca->set);
        charon->credentials->add_set(charon->credentials, &this->cred->set);
        charon->backends->add_backend(charon->backends, &this->config->backend);
-       lib->attributes->add_provider(lib->attributes, &this->attribute->provider);
+       hydra->attributes->add_provider(hydra->attributes, &this->attribute->provider);
 
        this->job = callback_job_create((callback_job_cb_t)receive,
                                                                        this, NULL, NULL);
index d6899f78cc9e31c99b318613453ad647d764eeda..86b435c15aed3d5a41836b946beddbb42f5c2beb 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 5bf97ca7e916474ca1b12d205a6166a68d0636c4..7a06d5edca1c564010cb760f5e21a057e8877d42 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index 69a9e534f785e5ca6ab2a244d079ebc671e4ab5d..a68246fff08f49103243a8d7fcf03dd7eefc4a3b 100644 (file)
@@ -17,6 +17,7 @@
 
 #include <library.h>
 #include <threading/thread.h>
+#include <hydra.h>
 
 #define ALLOCS 1000
 #define THREADS 20
@@ -39,8 +40,8 @@ static void* testing(void *thread)
        /* allocate addresses */
        for (i = 0; i < ALLOCS; i++)
        {
-               addr[i] = lib->attributes->acquire_address(lib->attributes,
-                                                                                                  "test", id[i], NULL);
+               addr[i] = hydra->attributes->acquire_address(hydra->attributes,
+                                                                                                        "test", id[i], NULL);
                if (!addr[i])
                {
                        return (void*)FALSE;
@@ -50,8 +51,8 @@ static void* testing(void *thread)
        /* release addresses */
        for (i = 0; i < ALLOCS; i++)
        {
-               lib->attributes->release_address(lib->attributes,
-                                                                                "test", addr[i], id[i]);
+               hydra->attributes->release_address(hydra->attributes,
+                                                                                  "test", addr[i], id[i]);
        }
 
        /* cleanup */
index e52556953883c79691015ee48a57948962e3dbbb..3c621fe4cec7ad26b630dabf34bf42520cc7536d 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 AM_CFLAGS = -rdynamic
 
index c3a1b940705b35e0b5addb8661ec9e24cad80514..cc2b95d44201efc58e27cda96bcdf6efbd2306bf 100644 (file)
@@ -25,6 +25,7 @@
 
 #include <library.h>
 #include <daemon.h>
+#include <hydra.h>
 #include <utils/linked_list.h>
 #include <utils/lexparser.h>
 #include <sa/task_manager.h>
@@ -2002,8 +2003,8 @@ static void destroy(private_ike_sa_t *this)
        while (this->attributes->remove_last(this->attributes,
                                                                                 (void**)&entry) == SUCCESS)
        {
-               lib->attributes->release(lib->attributes, entry->handler,
-                                                                this->other_id, entry->type, entry->data);
+               hydra->attributes->release(hydra->attributes, entry->handler,
+                                                                  this->other_id, entry->type, entry->data);
                free(entry->data.ptr);
                free(entry);
        }
@@ -2027,7 +2028,7 @@ static void destroy(private_ike_sa_t *this)
        {
                if (this->peer_cfg && this->peer_cfg->get_pool(this->peer_cfg))
                {
-                       lib->attributes->release_address(lib->attributes,
+                       hydra->attributes->release_address(hydra->attributes,
                                                                        this->peer_cfg->get_pool(this->peer_cfg),
                                                                        this->other_virtual_ip, this->other_id);
                }
index 4dce1937caf2ac2f1f267bb11b4d792e5874e28d..59a5a2c50fb5a24445884ed66721d62d3e2f1738 100644 (file)
@@ -31,6 +31,7 @@ typedef enum statistic_t statistic_t;
 typedef struct ike_sa_t ike_sa_t;
 
 #include <library.h>
+#include <attributes/attribute_handler.h>
 #include <encoding/message.h>
 #include <encoding/payloads/proposal_substructure.h>
 #include <encoding/payloads/configuration_attribute.h>
index f010439fef32456ffe5c4dc1fa1107e746e716bc..c252bd9c7db6790541b6fd23ca3ef99c5e5025e2 100644 (file)
@@ -17,6 +17,7 @@
 #include "ike_config.h"
 
 #include <daemon.h>
+#include <hydra.h>
 #include <encoding/payloads/cp_payload.h>
 
 typedef struct private_ike_config_t private_ike_config_t;
@@ -125,7 +126,7 @@ static void handle_attribute(private_ike_config_t *this,
        enumerator->destroy(enumerator);
 
        /* and pass it to the handle function */
-       handler = lib->attributes->handle(lib->attributes,
+       handler = hydra->attributes->handle(hydra->attributes,
                                                        this->ike_sa->get_other_id(this->ike_sa), handler,
                                                        ca->get_type(ca), ca->get_value(ca));
        if (handler)
@@ -252,7 +253,7 @@ static status_t build_i(private_ike_config_t *this, message_t *message)
                        cp->add_attribute(cp, build_vip(vip));
                }
 
-               enumerator = lib->attributes->create_initiator_enumerator(lib->attributes,
+               enumerator = hydra->attributes->create_initiator_enumerator(hydra->attributes,
                                                                this->ike_sa->get_other_id(this->ike_sa), vip);
                while (enumerator->enumerate(enumerator, &handler, &type, &data))
                {
@@ -353,7 +354,7 @@ static status_t build_r(private_ike_config_t *this, message_t *message)
                        DBG1(DBG_IKE, "peer requested virtual IP %H", this->virtual_ip);
                        if (config->get_pool(config))
                        {
-                               vip = lib->attributes->acquire_address(lib->attributes,
+                               vip = hydra->attributes->acquire_address(hydra->attributes,
                                                        config->get_pool(config), id, this->virtual_ip);
                        }
                        if (vip == NULL)
@@ -372,8 +373,8 @@ static status_t build_r(private_ike_config_t *this, message_t *message)
                }
 
                /* query registered providers for additional attributes to include */
-               enumerator = lib->attributes->create_responder_enumerator(
-                                                                                                       lib->attributes, id, vip);
+               enumerator = hydra->attributes->create_responder_enumerator(
+                                                                                                       hydra->attributes, id, vip);
                while (enumerator->enumerate(enumerator, &type, &value))
                {
                        if (!cp)
index 9d73f2e9b65d1707ec26feba61e92a6d001e6529..dbfedd1cf9927eee44f01fbcce681e2bd33d7a00 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra
 
 AM_CFLAGS = \
        -rdynamic \
index 981af986df81701cfb5bcb9864fa7a449cb8cc9f..632bd35a48d6d8176f3c9c3b7e867b9e08b29b26 100644 (file)
@@ -13,7 +13,7 @@
  * for more details.
  */
 
-#include <library.h>
+#include <hydra.h>
 #include <debug.h>
 
 #include "attr_sql_plugin.h"
@@ -48,7 +48,7 @@ struct private_attr_sql_plugin_t {
  */
 static void destroy(private_attr_sql_plugin_t *this)
 {
-       lib->attributes->remove_provider(lib->attributes, &this->attribute->provider);
+       hydra->attributes->remove_provider(hydra->attributes, &this->attribute->provider);
        this->attribute->destroy(this->attribute);
        this->db->destroy(this->db);
        free(this);
@@ -81,7 +81,7 @@ plugin_t *attr_sql_plugin_create()
                return NULL;
        }
        this->attribute = sql_attribute_create(this->db);
-       lib->attributes->add_provider(lib->attributes, &this->attribute->provider);
+       hydra->attributes->add_provider(hydra->attributes, &this->attribute->provider);
 
        return &this->public.plugin;
 }
index 6e632c03940f3168a9acdd43611a3f08269cefaf..8e7a1f0d30012ee60cb35ffdc4b664ca8955b71e 100644 (file)
@@ -1,5 +1,5 @@
 
-INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libcharon
+INCLUDES = -I$(top_srcdir)/src/libstrongswan -I$(top_srcdir)/src/libhydra -I$(top_srcdir)/src/libcharon
 
 noinst_LTLIBRARIES = libsimaka.la
 libsimaka_la_SOURCES = simaka_message.h simaka_message.c \
index fece34eec4a002a89873b17a66d14171c7cefb61..cd76370992fd5f0bf1d9dbf99bb0a38856e69742 100644 (file)
@@ -30,6 +30,7 @@
 #include <freeswan.h>
 #include "kameipsec.h"
 
+#include <hydra.h>
 #include <credentials/certificates/ac.h>
 #include <credentials/keys/private_key.h>
 
@@ -104,7 +105,7 @@ bool his_id_was_instantiated(const connection_t *c)
        {
                identification_t *host;
                bool equal;
-       
+
                host = identification_create_from_sockaddr((sockaddr_t*)&c->spd.that.host_addr);
                equal = host->equals(host, c->spd.that.id);
                host->destroy(host);
@@ -113,7 +114,7 @@ bool his_id_was_instantiated(const connection_t *c)
        else
        {
                return TRUE;
-       } 
+       }
 }
 
 /**
@@ -369,8 +370,8 @@ void delete_connection(connection_t *c, bool relations)
                host_t *vip;
 
                vip = host_create_from_sockaddr((sockaddr_t*)&c->spd.that.host_srcip);
-               lib->attributes->release_address(lib->attributes, c->spd.that.pool,
-                                                                                vip, c->spd.that.id);
+               hydra->attributes->release_address(hydra->attributes, c->spd.that.pool,
+                                                                                  vip, c->spd.that.id);
                vip->destroy(vip);
        }
 
@@ -683,7 +684,7 @@ size_t format_end(char *buf, size_t buf_len, const struct end *this,
        }
 
        /* id */
-       snprintf(host_id, sizeof(host_id), "[%Y]", this->id); 
+       snprintf(host_id, sizeof(host_id), "[%Y]", this->id);
 
        /* [---hop] */
        hop[0] = '\0';
@@ -769,7 +770,7 @@ static void load_end_certificate(char *filename, struct end *dst)
        cert_t *cert = NULL;
        certificate_t *certificate;
        bool cached_cert = FALSE;
-       
+
        /* initialize end certificate */
        dst->cert = NULL;
 
@@ -1794,7 +1795,7 @@ connection_t *build_outgoing_opportunistic_connection(struct gw_info *gw,
        else
        {
                chunk_t encoding = gw->gw_id->get_encoding(gw->gw_id);
-               id_type_t type   = gw->gw_id->get_type(gw->gw_id); 
+               id_type_t type   = gw->gw_id->get_type(gw->gw_id);
                ip_address ip_addr;
 
                initaddr(encoding.ptr, encoding.len,
@@ -2758,7 +2759,7 @@ static void initiate_opportunistic_body(struct find_oppo_bundle *b,
                                        addrtot(&b->peer_client, 0, pcb, sizeof(pcb));
                                        loglog(RC_OPPOFAILURE,
                                                        "no suitable connection for opportunism "
-                                                       "between %s and %s with %Y as peer",
+                                                       "between %s and %s with %Y as peer",
                                                         ocb, pcb, ac->gateways_from_dns->gw_id);
 
 #ifdef KLIPS
@@ -3379,7 +3380,7 @@ connection_t *refine_host_connection(const struct state *st,
                        id_match_t match_level = peer_id->matches(peer_id, d->spd.that.id);
 
                        bool matching_id = match_level > ID_MATCH_NONE;
-                               
+
                        bool matching_auth = (d->policy & auth_policy) != LEMPTY;
 
                        bool matching_trust = trusted_ca(peer_ca
@@ -3580,7 +3581,7 @@ static connection_t *fc_try(const connection_t *c, struct host_pair *hp,
        policy_prio_t best_prio = BOTTOM_PRIO;
        id_match_t match_level;
        int pathlen;
-       
+
 
        const bool peer_net_is_host = subnetisaddr(peer_net, &c->spd.that.host_addr);
 
@@ -3843,7 +3844,7 @@ void get_peer_ca_and_groups(connection_t *c,
                if (cert && ac_verify_cert(cert, strict_crl_policy))
                {
                        ac_t *ac = (ac_t*)cert;
-               
+
                        *peer_attributes = ac->get_groups(ac);
                }
                else
index 03ec7f41fd02dcd3a513cfc292ea0760a7f1b227..5622dc964222bf6c4a3f985d824da1c0cf55d596 100644 (file)
@@ -26,6 +26,7 @@
 #include <freeswan.h>
 
 #include <library.h>
+#include <hydra.h>
 #include <attributes/attributes.h>
 #include <crypto/prfs/prf.h>
 
@@ -129,13 +130,13 @@ static void get_internal_addr(connection_t *c, host_t *requested_vip,
        {
                if (c->spd.that.pool)
                {
-                       vip = lib->attributes->acquire_address(lib->attributes,
+                       vip = hydra->attributes->acquire_address(hydra->attributes,
                                                                                c->spd.that.pool, c->spd.that.id,
                                                                                requested_vip);
                        if (vip)
                        {
                                chunk_t addr = vip->get_address(vip);
-               
+
                                plog("assigning virtual IP %H to peer", vip);
                                initaddr(addr.ptr, addr.len, vip->get_family(vip), &ia->ipaddr);
 
@@ -217,14 +218,14 @@ static void get_internal_addr(connection_t *c, host_t *requested_vip,
        }
 
        /* assign attributes from registered providers */
-       enumerator = lib->attributes->create_responder_enumerator(lib->attributes,
+       enumerator = hydra->attributes->create_responder_enumerator(hydra->attributes,
                                                                                        c->spd.that.id, vip);
        while (enumerator->enumerate(enumerator, &type, &value))
        {
                err_t ugh;
                host_t *server;
                sa_family_t family = AF_INET;
-               
+
                switch (type)
                {
                        case INTERNAL_IP6_DNS:
@@ -257,7 +258,7 @@ static void get_internal_addr(connection_t *c, host_t *requested_vip,
                                /* fallthrough */
                        case INTERNAL_IP4_NBNS:
                                if (nbns_idx >= NBNS_SERVER_MAX)
-                               {
+                               {
                                        plog("exceeded the maximum number of %d NBNS servers",
                                                 NBNS_SERVER_MAX);
                                        break;
@@ -279,7 +280,7 @@ static void get_internal_addr(connection_t *c, host_t *requested_vip,
 
                        default:
                                break;
-               }                       
+               }
        }
        enumerator->destroy(enumerator);
        DESTROY_IF(vip);