From 1c31d34ed5d31db8a0472fec5275155e21117812 Mon Sep 17 00:00:00 2001 From: Tobias Brunner Date: Thu, 29 Apr 2010 14:51:44 +0200 Subject: [PATCH] Initialize libstrongswan in stroke (fixes Vstr logging). --- src/stroke/stroke.c | 5 +++++ 1 file changed, 5 insertions(+) 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 #include +#include + #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);