charon-tkm: Register kernel_netlink_net
Explicitly register kernel netlink net implementation and avoid loading the whole kernel-netlink plugin since the kernel netlink ipsec part is unwanted.
This commit is contained in:
committed by
Tobias Brunner
parent
db97fd74d3
commit
6ed5c3bb1e
@@ -25,7 +25,6 @@ PLUGINS = \
|
|||||||
aes \
|
aes \
|
||||||
constraints \
|
constraints \
|
||||||
hmac \
|
hmac \
|
||||||
kernel-netlink \
|
|
||||||
pem \
|
pem \
|
||||||
pkcs1 \
|
pkcs1 \
|
||||||
pkcs8 \
|
pkcs8 \
|
||||||
|
|||||||
@@ -27,6 +27,7 @@
|
|||||||
|
|
||||||
#include <hydra.h>
|
#include <hydra.h>
|
||||||
#include <daemon.h>
|
#include <daemon.h>
|
||||||
|
#include <plugins/kernel_netlink/kernel_netlink_net.h>
|
||||||
|
|
||||||
#include <library.h>
|
#include <library.h>
|
||||||
#include <utils/backtrace.h>
|
#include <utils/backtrace.h>
|
||||||
@@ -287,6 +288,9 @@ int main(int argc, char *argv[])
|
|||||||
PLUGIN_PROVIDE(DH, MODP_4096_BIT),
|
PLUGIN_PROVIDE(DH, MODP_4096_BIT),
|
||||||
PLUGIN_CALLBACK(kernel_ipsec_register, tkm_kernel_ipsec_create),
|
PLUGIN_CALLBACK(kernel_ipsec_register, tkm_kernel_ipsec_create),
|
||||||
PLUGIN_PROVIDE(CUSTOM, "kernel-ipsec"),
|
PLUGIN_PROVIDE(CUSTOM, "kernel-ipsec"),
|
||||||
|
PLUGIN_CALLBACK(kernel_net_register, kernel_netlink_net_create),
|
||||||
|
PLUGIN_PROVIDE(CUSTOM, "kernel-net"),
|
||||||
|
|
||||||
};
|
};
|
||||||
lib->plugins->add_static_features(lib->plugins, "tkm-backend", features,
|
lib->plugins->add_static_features(lib->plugins, "tkm-backend", features,
|
||||||
countof(features), TRUE);
|
countof(features), TRUE);
|
||||||
|
|||||||
@@ -19,12 +19,14 @@
|
|||||||
#include <hydra.h>
|
#include <hydra.h>
|
||||||
#include <config/proposal.h>
|
#include <config/proposal.h>
|
||||||
#include <encoding/payloads/ike_header.h>
|
#include <encoding/payloads/ike_header.h>
|
||||||
|
#include <plugins/kernel_netlink/kernel_netlink_net.h>
|
||||||
#include <tkm/client.h>
|
#include <tkm/client.h>
|
||||||
|
|
||||||
#include "tkm.h"
|
#include "tkm.h"
|
||||||
#include "tkm_nonceg.h"
|
#include "tkm_nonceg.h"
|
||||||
#include "tkm_diffie_hellman.h"
|
#include "tkm_diffie_hellman.h"
|
||||||
#include "tkm_keymat.h"
|
#include "tkm_keymat.h"
|
||||||
|
#include "tkm_kernel_ipsec.h"
|
||||||
|
|
||||||
START_TEST(test_derive_ike_keys)
|
START_TEST(test_derive_ike_keys)
|
||||||
{
|
{
|
||||||
@@ -39,6 +41,10 @@ START_TEST(test_derive_ike_keys)
|
|||||||
PLUGIN_REGISTER(DH, tkm_diffie_hellman_create),
|
PLUGIN_REGISTER(DH, tkm_diffie_hellman_create),
|
||||||
PLUGIN_PROVIDE(DH, MODP_3072_BIT),
|
PLUGIN_PROVIDE(DH, MODP_3072_BIT),
|
||||||
PLUGIN_PROVIDE(DH, MODP_4096_BIT),
|
PLUGIN_PROVIDE(DH, MODP_4096_BIT),
|
||||||
|
PLUGIN_CALLBACK(kernel_ipsec_register, tkm_kernel_ipsec_create),
|
||||||
|
PLUGIN_PROVIDE(CUSTOM, "kernel-ipsec"),
|
||||||
|
PLUGIN_CALLBACK(kernel_net_register, kernel_netlink_net_create),
|
||||||
|
PLUGIN_PROVIDE(CUSTOM, "kernel-net"),
|
||||||
};
|
};
|
||||||
lib->plugins->add_static_features(lib->plugins, "tkm-tests", features,
|
lib->plugins->add_static_features(lib->plugins, "tkm-tests", features,
|
||||||
countof(features), TRUE);
|
countof(features), TRUE);
|
||||||
|
|||||||
Reference in New Issue
Block a user