Register TKM kernel ipsec interface in charon-tkm
authorAdrian-Ken Rueegsegger <ken@codelabs.ch>
Fri, 7 Sep 2012 13:17:25 +0000 (15:17 +0200)
committerTobias Brunner <tobias@strongswan.org>
Tue, 19 Mar 2013 14:23:47 +0000 (15:23 +0100)
src/charon-tkm/src/charon-tkm.c

index f2a58b2..0782bda 100644 (file)
@@ -38,6 +38,7 @@
 #include "tkm_diffie_hellman.h"
 #include "tkm_keymat.h"
 #include "tkm_listener.h"
+#include "tkm_kernel_ipsec.h"
 
 /**
  * TKM bus listener for IKE authorize events.
@@ -284,6 +285,8 @@ int main(int argc, char *argv[])
                PLUGIN_REGISTER(DH, tkm_diffie_hellman_create),
                        PLUGIN_PROVIDE(DH, MODP_3072_BIT),
                        PLUGIN_PROVIDE(DH, MODP_4096_BIT),
+               PLUGIN_CALLBACK(kernel_ipsec_register, tkm_kernel_ipsec_create),
+                       PLUGIN_PROVIDE(CUSTOM, "kernel-ipsec"),
        };
        lib->plugins->add_static_features(lib->plugins, "tkm-backend", features,
                        countof(features), TRUE);