traffic_selector_t is gone into libstrongswan, migrate printf hook registration, too.
This commit is contained in:
@@ -29,7 +29,6 @@
|
||||
#include "daemon.h"
|
||||
|
||||
#include <library.h>
|
||||
#include <selectors/traffic_selector.h>
|
||||
#include <config/proposal.h>
|
||||
|
||||
#ifndef LOG_AUTHPRIV /* not defined on OpenSolaris */
|
||||
@@ -429,10 +428,6 @@ bool libcharon_init()
|
||||
this = daemon_create();
|
||||
charon = &this->public;
|
||||
|
||||
lib->printf_hook->add_handler(lib->printf_hook, 'R',
|
||||
traffic_selector_printf_hook,
|
||||
PRINTF_HOOK_ARGTYPE_POINTER,
|
||||
PRINTF_HOOK_ARGTYPE_END);
|
||||
lib->printf_hook->add_handler(lib->printf_hook, 'P',
|
||||
proposal_printf_hook,
|
||||
PRINTF_HOOK_ARGTYPE_POINTER,
|
||||
|
||||
@@ -18,12 +18,13 @@
|
||||
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "debug.h"
|
||||
#include "threading/thread.h"
|
||||
#include "utils/identification.h"
|
||||
#include "utils/host.h"
|
||||
#include <debug.h>
|
||||
#include <threading/thread.h>
|
||||
#include <utils/identification.h>
|
||||
#include <utils/host.h>
|
||||
#include <selectors/traffic_selector.h>
|
||||
#ifdef LEAK_DETECTIVE
|
||||
#include "utils/leak_detective.h"
|
||||
#include <utils/leak_detective.h>
|
||||
#endif
|
||||
|
||||
#define CHECKSUM_LIBRARY IPSEC_DIR"/libchecksum.so"
|
||||
@@ -129,6 +130,8 @@ bool library_init(char *settings)
|
||||
PRINTF_HOOK_ARGTYPE_END);
|
||||
pfh->add_handler(pfh, 'Y', identification_printf_hook,
|
||||
PRINTF_HOOK_ARGTYPE_POINTER, PRINTF_HOOK_ARGTYPE_END);
|
||||
pfh->add_handler(pfh, 'R', traffic_selector_printf_hook,
|
||||
PRINTF_HOOK_ARGTYPE_POINTER, PRINTF_HOOK_ARGTYPE_END);
|
||||
|
||||
this->public.settings = settings_create(settings);
|
||||
this->public.crypto = crypto_factory_create();
|
||||
|
||||
Reference in New Issue
Block a user