aboutsummaryrefslogtreecommitdiffstats
path: root/src/_copyright
diff options
context:
space:
mode:
authorTobias Brunner <tobias@strongswan.org>2010-08-06 19:28:28 +0200
committerTobias Brunner <tobias@strongswan.org>2010-08-06 19:56:42 +0200
commitfa9f1013452d87f32f417fee7b51798acd6306cc (patch)
tree92c0fc01aebe8a1e0f01f96361927056c7eaa15c /src/_copyright
parent7c3dd613d7e5111374158c0a5a60d5b8fa35c8b8 (diff)
downloadstrongswan-fa9f1013452d87f32f417fee7b51798acd6306cc.tar.bz2
strongswan-fa9f1013452d87f32f417fee7b51798acd6306cc.tar.xz
Properly initialize libstrongswan in _copyright.
This is required if libvstr is used.
Diffstat (limited to 'src/_copyright')
-rw-r--r--src/_copyright/_copyright.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/_copyright/_copyright.c b/src/_copyright/_copyright.c
index 9f0ad9785..072998345 100644
--- a/src/_copyright/_copyright.c
+++ b/src/_copyright/_copyright.c
@@ -20,7 +20,9 @@
#include <string.h>
#include <unistd.h>
#include <getopt.h>
+
#include <freeswan.h>
+#include <library.h>
char usage[] = "Usage: ipsec _copyright";
struct option opts[] = {
@@ -40,6 +42,9 @@ main(int argc, char *argv[])
const char **notice = ipsec_copyright_notice();
const char **co;
+ library_init(NULL);
+ atexit(library_deinit);
+
while ((opt = getopt_long(argc, argv, "", opts, NULL)) != EOF)
switch (opt) {
case 'h': /* help */