printed plugin names have a hyphen

This commit is contained in:
Andreas Steffen
2010-12-24 05:53:27 +01:00
parent 33bfdf6f37
commit d77c6c49a9
7 changed files with 9 additions and 5 deletions
@@ -105,7 +105,7 @@ void af_alg_crypter_probe()
if (ops)
{
ops->destroy(ops);
lib->crypto->add_crypter(lib->crypto, algs[i].id, "af_alg",
lib->crypto->add_crypter(lib->crypto, algs[i].id, af_alg_plugin_name,
(crypter_constructor_t)af_alg_crypter_create);
}
}
@@ -70,7 +70,7 @@ void af_alg_hasher_probe()
if (ops)
{
ops->destroy(ops);
lib->crypto->add_hasher(lib->crypto, algs[i].id, "af_alg",
lib->crypto->add_hasher(lib->crypto, algs[i].id, af_alg_plugin_name,
(hasher_constructor_t)af_alg_hasher_create);
}
}
@@ -21,6 +21,8 @@
#include <debug.h>
const char *af_alg_plugin_name = "af-alg";
typedef struct private_af_alg_ops_t private_af_alg_ops_t;
/**
@@ -33,6 +33,8 @@
#define SOL_ALG 279
#endif /* SOL_ALG */
extern const char *af_alg_plugin_name;
typedef struct af_alg_ops_t af_alg_ops_t;
/**
@@ -81,7 +81,7 @@ void af_alg_prf_probe()
if (ops)
{
ops->destroy(ops);
lib->crypto->add_prf(lib->crypto, algs[i].id, "af_alg",
lib->crypto->add_prf(lib->crypto, algs[i].id, af_alg_plugin_name,
(prf_constructor_t)af_alg_prf_create);
}
}
@@ -82,7 +82,7 @@ void af_alg_signer_probe()
if (ops)
{
ops->destroy(ops);
lib->crypto->add_signer(lib->crypto, algs[i].id, "af_alg",
lib->crypto->add_signer(lib->crypto, algs[i].id, af_alg_plugin_name,
(signer_constructor_t)af_alg_signer_create);
}
}
@@ -18,7 +18,7 @@
#include <library.h>
#include "fips_prf.h"
static const char *plugin_name = "fips_prf";
static const char *plugin_name = "fips-prf";
typedef struct private_fips_prf_plugin_t private_fips_prf_plugin_t;