]> git.ipfire.org Git - thirdparty/strongswan.git/commitdiff
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 77e41e3fae7426eb7a71e5b1b7830a85b21aabc5..3416ad8d2fff84c84b2d3da18bfdeb7171ec81a9 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 3c5d8daec7c486122c56402f8f2a3f6893ccc9ea..7c6297d441232cd051f0e6cde3c45a7a855ecfad 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 82a227d978a86e53927d03bc406489f855e68baf..7bf1d90db90db9117821d67ce8aad2704bf72bb2 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 ad164029f0bbaf9b3e699d04639155f55ec13d11..b7d642c009fce35cdb0bf1afae7f0d50d70648ba 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 e6bb9354c12f20af2707254738a8900f95adb307..575906bae70f7930fd15cd977f0b2be9422e6c6d 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 245675a583d247fcd544cb7e45f7fa9b1a193bab..3d6f907bf08c1480ea11989cceb3b39a3650012c 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 c67f81089be9e789a520129d3b86d4da75222c26..3cce6ad91dfa35b0e187c74a61c49c1e1f74afd9 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;