aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-04-29 14:51:44 +0200
committerTobias Brunner <tobias@strongswan.org>2010-04-29 14:51:44 +0200
commit1c31d34ed5d31db8a0472fec5275155e21117812 (patch)
treeb4ec76078f198e7e395950d914b2aecac97af6f3
parent26a3d7e78e18b3d0a74f0c32b1fea9edb5b636a3 (diff)
downloadstrongswan-1c31d34ed5d31db8a0472fec5275155e21117812.tar.bz2
strongswan-1c31d34ed5d31db8a0472fec5275155e21117812.tar.xz
Initialize libstrongswan in stroke (fixes Vstr logging).
-rw-r--r--src/stroke/stroke.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stroke/stroke.c b/src/stroke/stroke.c
index 1cb8cc271..4fa0f76a8 100644
--- a/src/stroke/stroke.c
+++ b/src/stroke/stroke.c
@@ -27,6 +27,8 @@
#include <stddef.h>
#include <string.h>
+#include <library.h>
+
#include "stroke_msg.h"
#include "stroke_keywords.h"
@@ -357,6 +359,9 @@ int main(int argc, char *argv[])
const stroke_token_t *token;
int res = 0;
+ library_init(NULL);
+ atexit(library_deinit);
+
if (argc < 2)
{
exit_usage(NULL);