aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/library.c
diff options
context:
space:
mode:
authorMartin Willi <martin@revosec.ch>2014-06-04 16:26:58 +0200
committerMartin Willi <martin@revosec.ch>2014-06-04 16:26:58 +0200
commit8c55f8ef42816a695895990cf89697a30c235355 (patch)
treec4aa8a3f0f08166b37369bb93132d0ece470af42 /src/libstrongswan/library.c
parentb4c51061c3c649e948324d1f3ad37ef6e48f8b96 (diff)
parentd930d184177ef352c4b5def4e5848463819435ec (diff)
downloadstrongswan-8c55f8ef42816a695895990cf89697a30c235355.tar.bz2
strongswan-8c55f8ef42816a695895990cf89697a30c235355.tar.xz
Merge branch 'win'
Ports the strongSwan core libraries and some plugins to the Windows platform using a MinGW based toolchain. Beside generic platform abstraction and the windows.[ch] compatibility layer, this merge introduces a Windows native threading backend and a charon-svc Windows IKE service. Travis adds a MinGW cross-compile build to Windows, and further enables -Werror to let builds fail for all compiler warnings with gcc and Clang.
Diffstat (limited to 'src/libstrongswan/library.c')
-rw-r--r--src/libstrongswan/library.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/libstrongswan/library.c b/src/libstrongswan/library.c
index f152a8c1f..e3ad16411 100644
--- a/src/libstrongswan/library.c
+++ b/src/libstrongswan/library.c
@@ -141,11 +141,13 @@ void library_deinit()
{
lib->leak_detective->report(lib->leak_detective, detailed);
lib->leak_detective->destroy(lib->leak_detective);
+ lib->leak_detective = NULL;
}
+ backtrace_deinit();
arrays_deinit();
+ utils_deinit();
threads_deinit();
- backtrace_deinit();
free((void*)this->public.ns);
free(this);
@@ -249,6 +251,8 @@ bool library_init(char *settings, const char *namespace)
return !this->integrity_failed;
}
+ chunk_hash_seed();
+
INIT(this,
.public = {
.get = _get,
@@ -259,9 +263,10 @@ bool library_init(char *settings, const char *namespace)
);
lib = &this->public;
- backtrace_init();
threads_init();
+ utils_init();
arrays_init();
+ backtrace_init();
#ifdef LEAK_DETECTIVE
lib->leak_detective = leak_detective_create();