implemented IKE_SA rekeying
uses ikelifetime, rekeymargin and rekeyfuzz config settings no handling of simultaneus exchanges yet!
This commit is contained in:
@@ -28,6 +28,7 @@
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
||||
#include <unistd.h>
|
||||
#include <time.h>
|
||||
#include <execinfo.h>
|
||||
#include <string.h>
|
||||
#include <getopt.h>
|
||||
@@ -171,6 +172,9 @@ static void initialize(private_daemon_t *this, bool strict)
|
||||
{
|
||||
credential_store_t* credentials;
|
||||
|
||||
/* for uncritical pseudo random numbers */
|
||||
srandom(time(NULL) + getpid());
|
||||
|
||||
this->public.configuration = configuration_create();
|
||||
this->public.socket = socket_create(IKEV2_UDP_PORT, IKEV2_NATT_PORT);
|
||||
this->public.interfaces = interfaces_create(IKEV2_UDP_PORT);
|
||||
|
||||
Reference in New Issue
Block a user