added a MODP_NULL Diffie Hellman group to avoid calculation overhead in load-testing

This commit is contained in:
Martin Willi
2008-11-22 16:14:55 +00:00
parent 8f45ece098
commit a20abb81e9
7 changed files with 139 additions and 2 deletions
@@ -20,6 +20,7 @@
#include "load_tester_creds.h"
#include "load_tester_ipsec.h"
#include "load_tester_listener.h"
#include "load_tester_diffie_hellman.h"
#include <unistd.h>
@@ -132,6 +133,8 @@ static void destroy(private_load_tester_plugin_t *this)
this->config->destroy(this->config);
this->creds->destroy(this->creds);
this->listener->destroy(this->listener);
lib->crypto->remove_dh(lib->crypto,
(dh_constructor_t)load_tester_diffie_hellman_create);
free(this);
}
@@ -145,6 +148,9 @@ plugin_t *plugin_create()
this->public.plugin.destroy = (void(*)(plugin_t*))destroy;
lib->crypto->add_dh(lib->crypto, MODP_NULL,
(dh_constructor_t)load_tester_diffie_hellman_create);
this->config = load_tester_config_create();
this->creds = load_tester_creds_create();
this->listener = load_tester_listener_create();