charon-tkm: Register tkm nonce generator
This commit is contained in:
committed by
Tobias Brunner
parent
8e95bf455d
commit
d51305aa3f
@@ -27,7 +27,6 @@ PLUGINS = \
|
|||||||
gmp \
|
gmp \
|
||||||
hmac \
|
hmac \
|
||||||
kernel-netlink \
|
kernel-netlink \
|
||||||
nonce \
|
|
||||||
pem \
|
pem \
|
||||||
pkcs1 \
|
pkcs1 \
|
||||||
pkcs8 \
|
pkcs8 \
|
||||||
|
|||||||
@@ -33,6 +33,7 @@
|
|||||||
#include <threading/thread.h>
|
#include <threading/thread.h>
|
||||||
|
|
||||||
#include "tkm.h"
|
#include "tkm.h"
|
||||||
|
#include "tkm_nonceg.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* PID file, in which charon-tkm stores its process id
|
* PID file, in which charon-tkm stores its process id
|
||||||
@@ -267,6 +268,14 @@ int main(int argc, char *argv[])
|
|||||||
|
|
||||||
DBG1(DBG_DMN, "Starting charon with TKM backend (strongSwan "VERSION")");
|
DBG1(DBG_DMN, "Starting charon with TKM backend (strongSwan "VERSION")");
|
||||||
|
|
||||||
|
/* register TKM specific plugins */
|
||||||
|
static plugin_feature_t features[] = {
|
||||||
|
PLUGIN_REGISTER(NONCE_GEN, tkm_nonceg_create),
|
||||||
|
PLUGIN_PROVIDE(NONCE_GEN)
|
||||||
|
};
|
||||||
|
lib->plugins->add_static_features(lib->plugins, "tkm-backend", features,
|
||||||
|
countof(features), TRUE);
|
||||||
|
|
||||||
/* initialize daemon */
|
/* initialize daemon */
|
||||||
if (!charon->initialize(charon, PLUGINS))
|
if (!charon->initialize(charon, PLUGINS))
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user