aboutsummaryrefslogtreecommitdiffstats
path: root/Source/charon/daemon.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2006-03-07 09:42:15 +0000
committerMartin Willi <martin@strongswan.org>2006-03-07 09:42:15 +0000
commit8a4911290753eb3b4d3070ed9097d7cbcd2fd349 (patch)
treece5cbaf9364ace55fd324b5967652cc32b0c5797 /Source/charon/daemon.c
parentaa5a35a0056a50c563af9fa1d7c808e1f869405c (diff)
downloadstrongswan-8a4911290753eb3b4d3070ed9097d7cbcd2fd349.tar.bz2
strongswan-8a4911290753eb3b4d3070ed9097d7cbcd2fd349.tar.xz
- configuration_manager replaced by configuration_t interface
- current configuration_manager is now static_configuration (testing) - first draft of starter_configuration, which should once interact with ipsec starter (via whack?) - some cleanups - socket_t uses RAW socket, which allows parallel service of pluto/charon
Diffstat (limited to 'Source/charon/daemon.c')
-rw-r--r--Source/charon/daemon.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/charon/daemon.c b/Source/charon/daemon.c
index 21ed44ef8..db75809d2 100644
--- a/Source/charon/daemon.c
+++ b/Source/charon/daemon.c
@@ -29,6 +29,8 @@
#include <types.h>
#include <utils/allocator.h>
#include <queues/jobs/initiate_ike_sa_job.h>
+#include <config/static_configuration.h>
+#include <config/starter_configuration.h>
typedef struct private_daemon_t private_daemon_t;
@@ -182,7 +184,7 @@ static void initialize(private_daemon_t *this)
this->public.job_queue = job_queue_create();
this->public.event_queue = event_queue_create();
this->public.send_queue = send_queue_create();
- this->public.configuration_manager = configuration_manager_create(RETRANSMIT_TIMEOUT,MAX_RETRANSMIT_COUNT, HALF_OPEN_IKE_SA_TIMEOUT);
+ this->public.configuration = (configuration_t*)static_configuration_create();
this->public.sender = sender_create();
this->public.receiver = receiver_create();
@@ -236,9 +238,9 @@ static void destroy(private_daemon_t *this)
{
this->public.socket->destroy(this->public.socket);
}
- if (this->public.configuration_manager != NULL)
+ if (this->public.configuration != NULL)
{
- this->public.configuration_manager->destroy(this->public.configuration_manager);
+ this->public.configuration->destroy(this->public.configuration);
}
this->public.logger_manager->destroy(this->public.logger_manager);
@@ -273,7 +275,7 @@ private_daemon_t *daemon_create()
this->public.job_queue = NULL;
this->public.event_queue = NULL;
this->public.send_queue = NULL;
- this->public.configuration_manager = NULL;
+ this->public.configuration = NULL;
this->public.sender= NULL;
this->public.receiver = NULL;
this->public.scheduler = NULL;