printed plugin names have a hyphen
authorAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 24 Dec 2010 04:53:27 +0000 (05:53 +0100)
committerAndreas Steffen <andreas.steffen@strongswan.org>
Fri, 24 Dec 2010 04:53:27 +0000 (05:53 +0100)
src/libstrongswan/plugins/af_alg/af_alg_crypter.c
src/libstrongswan/plugins/af_alg/af_alg_hasher.c
src/libstrongswan/plugins/af_alg/af_alg_ops.c
src/libstrongswan/plugins/af_alg/af_alg_ops.h
src/libstrongswan/plugins/af_alg/af_alg_prf.c
src/libstrongswan/plugins/af_alg/af_alg_signer.c
src/libstrongswan/plugins/fips_prf/fips_prf_plugin.c

index 77e41e3..3416ad8 100644 (file)
@@ -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);
                        }
                }
index 3c5d8da..7c6297d 100644 (file)
@@ -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);
                }
        }
index 82a227d..7bf1d90 100644 (file)
@@ -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;
 
 /**
index ad16402..b7d642c 100644 (file)
@@ -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;
 
 /**
index e6bb935..575906b 100644 (file)
@@ -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);
                }
        }
index 245675a..3d6f907 100644 (file)
@@ -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);
                }
        }
index c67f810..3cce6ad 100644 (file)
@@ -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;