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:
+2
-4
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user