Properly initialize libstrongswan in _copyright.

This is required if libvstr is used.
This commit is contained in:
Tobias Brunner
2010-08-06 19:56:42 +02:00
parent 7c3dd613d7
commit fa9f101345
+5
View File
@@ -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 */