pluto: Refactored PF_KEY capabilities registration.

Although we use the kernel interface from libhydra we still need this to make
the available algorithms known to pluto.
This commit is contained in:
Tobias Brunner
2010-09-02 19:04:23 +02:00
parent 4f898afc22
commit 296972aeaf
3 changed files with 108 additions and 239 deletions
+2 -4
View File
@@ -1823,8 +1823,6 @@ void init_kernel(void)
{
#ifdef KLIPS
init_pfkey();
#if defined(linux) && defined(KERNEL26_SUPPORT)
{
bool linux_ipsec = 0;
@@ -1844,8 +1842,8 @@ void init_kernel(void)
#endif
/* register SA types that we can negotiate */
can_do_IPcomp = FALSE; /* until we get a response from KLIPS */
kernel_ops->pfkey_register();
can_do_IPcomp = FALSE; /* until we get a response from the kernel */
pfkey_register();
INIT(kernel_handler,
.acquire = _acquire,