Initialize libstrongswan in stroke (fixes Vstr logging).
This commit is contained in:
@@ -27,6 +27,8 @@
|
|||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
|
|
||||||
|
#include <library.h>
|
||||||
|
|
||||||
#include "stroke_msg.h"
|
#include "stroke_msg.h"
|
||||||
#include "stroke_keywords.h"
|
#include "stroke_keywords.h"
|
||||||
|
|
||||||
@@ -357,6 +359,9 @@ int main(int argc, char *argv[])
|
|||||||
const stroke_token_t *token;
|
const stroke_token_t *token;
|
||||||
int res = 0;
|
int res = 0;
|
||||||
|
|
||||||
|
library_init(NULL);
|
||||||
|
atexit(library_deinit);
|
||||||
|
|
||||||
if (argc < 2)
|
if (argc < 2)
|
||||||
{
|
{
|
||||||
exit_usage(NULL);
|
exit_usage(NULL);
|
||||||
|
|||||||
Reference in New Issue
Block a user