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
+8 -6
View File
@@ -1,6 +1,6 @@
/* declarations of routines that interface with the kernel's pfkey mechanism
* Copyright (C) 1998-2001 D. Hugh Redelmeier.
* Copyright (C) 2003 Herbert Xu
/*
* Copyright (C) 2010 Tobias Brunner
* Hochschule fuer Technik Rapperswil
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
@@ -14,7 +14,9 @@
*/
#ifdef KLIPS
extern void init_pfkey(void);
extern void pfkey_register_proto(unsigned satype, const char *satypename);
extern void pfkey_close(void);
/**
* Register our capabilities via PF_KEY, also learn the kernel's capabilities,
* i.e. the supported algorithms.
*/
void pfkey_register();
#endif