diff options
author | Tobias Brunner <tobias@strongswan.org> | 2010-08-16 11:12:57 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2010-09-02 19:04:23 +0200 |
commit | 36ff473016a700402530622f8e002dcb5df1354c (patch) | |
tree | 6821fb3de399a963f28a58cc51a298454a4fd7cf /src/pluto/kernel.c | |
parent | 296972aeafc863121af83b6278ca8ad8cb70d720 (diff) | |
download | strongswan-36ff473016a700402530622f8e002dcb5df1354c.tar.bz2 strongswan-36ff473016a700402530622f8e002dcb5df1354c.tar.xz |
pluto: Completely removed struct kernel_ops.
Diffstat (limited to 'src/pluto/kernel.c')
-rw-r--r-- | src/pluto/kernel.c | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/src/pluto/kernel.c b/src/pluto/kernel.c index c140d6777..9654ef387 100644 --- a/src/pluto/kernel.c +++ b/src/pluto/kernel.c @@ -1763,8 +1763,6 @@ failed: return result; } -const struct kernel_ops *kernel_ops; - /** * Data for acquire events */ @@ -1822,25 +1820,6 @@ METHOD(kernel_listener_t, acquire, bool, void init_kernel(void) { #ifdef KLIPS - -#if defined(linux) && defined(KERNEL26_SUPPORT) - { - bool linux_ipsec = 0; - struct stat buf; - - linux_ipsec = (stat("/proc/net/pfkey", &buf) == 0); - if (linux_ipsec) - { - plog("Using Linux 2.6 IPsec interface code"); - kernel_ops = &linux_kernel_ops; - } - else - { - plog("Using KLIPS IPsec interface code"); - } - } -#endif - /* register SA types that we can negotiate */ can_do_IPcomp = FALSE; /* until we get a response from the kernel */ pfkey_register(); |