diff options
author | Tobias Brunner <tobias@strongswan.org> | 2008-05-15 12:33:00 +0000 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2008-05-15 12:33:00 +0000 |
commit | c1571b34fdb87b8b18a1aeb336d208d2bdcc2429 (patch) | |
tree | 9ba060a339a1e50828e47adc9c555b7c1ace6ee3 | |
parent | 89658f6d6c0cea83f62109ad15f93df89873e499 (diff) | |
download | strongswan-c1571b34fdb87b8b18a1aeb336d208d2bdcc2429.tar.bz2 strongswan-c1571b34fdb87b8b18a1aeb336d208d2bdcc2429.tar.xz |
generic public key factory moved
-rw-r--r-- | src/libstrongswan/plugins/gmp/Makefile.am | 4 | ||||
-rw-r--r-- | src/libstrongswan/plugins/gmp/gmp_plugin.c | 3 | ||||
-rw-r--r-- | src/libstrongswan/plugins/pubkey/Makefile.am | 4 | ||||
-rw-r--r-- | src/libstrongswan/plugins/pubkey/pubkey_plugin.c | 3 | ||||
-rw-r--r-- | src/libstrongswan/plugins/pubkey/pubkey_public_key.c (renamed from src/libstrongswan/plugins/gmp/gmp_public_key.c) | 4 | ||||
-rw-r--r-- | src/libstrongswan/plugins/pubkey/pubkey_public_key.h (renamed from src/libstrongswan/plugins/gmp/gmp_public_key.h) | 12 |
6 files changed, 16 insertions, 14 deletions
diff --git a/src/libstrongswan/plugins/gmp/Makefile.am b/src/libstrongswan/plugins/gmp/Makefile.am index 5d715d0a0..f073b5d48 100644 --- a/src/libstrongswan/plugins/gmp/Makefile.am +++ b/src/libstrongswan/plugins/gmp/Makefile.am @@ -8,8 +8,8 @@ plugin_LTLIBRARIES = libstrongswan-gmp.la libstrongswan_gmp_la_SOURCES = gmp_plugin.h gmp_plugin.c \ gmp_diffie_hellman.c gmp_diffie_hellman.h \ gmp_rsa_private_key.c gmp_rsa_private_key.h \ - gmp_rsa_public_key.c gmp_rsa_public_key.h \ - gmp_public_key.c gmp_public_key.h + gmp_rsa_public_key.c gmp_rsa_public_key.h + libstrongswan_gmp_la_LDFLAGS = -module libstrongswan_gmp_la_LIBADD = -lgmp diff --git a/src/libstrongswan/plugins/gmp/gmp_plugin.c b/src/libstrongswan/plugins/gmp/gmp_plugin.c index 3cbd2f198..9f637e615 100644 --- a/src/libstrongswan/plugins/gmp/gmp_plugin.c +++ b/src/libstrongswan/plugins/gmp/gmp_plugin.c @@ -19,7 +19,6 @@ #include <library.h> #include "gmp_diffie_hellman.h" -#include "gmp_public_key.h" #include "gmp_rsa_private_key.h" #include "gmp_rsa_public_key.h" @@ -82,8 +81,6 @@ plugin_t *plugin_create() (builder_constructor_t)gmp_rsa_private_key_builder); lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_RSA, (builder_constructor_t)gmp_rsa_public_key_builder); - lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_ANY, - (builder_constructor_t)gmp_public_key_builder); return &this->public.plugin; } diff --git a/src/libstrongswan/plugins/pubkey/Makefile.am b/src/libstrongswan/plugins/pubkey/Makefile.am index 3d67f35d7..3b512614f 100644 --- a/src/libstrongswan/plugins/pubkey/Makefile.am +++ b/src/libstrongswan/plugins/pubkey/Makefile.am @@ -6,6 +6,8 @@ AM_CFLAGS = -rdynamic plugin_LTLIBRARIES = libstrongswan-pubkey.la libstrongswan_pubkey_la_SOURCES = pubkey_plugin.h pubkey_plugin.c \ - pubkey_cert.h pubkey_cert.c + pubkey_cert.h pubkey_cert.c\ + pubkey_public_key.h pubkey_public_key.c + libstrongswan_pubkey_la_LDFLAGS = -module diff --git a/src/libstrongswan/plugins/pubkey/pubkey_plugin.c b/src/libstrongswan/plugins/pubkey/pubkey_plugin.c index 77d2c86e9..37d0dcd4c 100644 --- a/src/libstrongswan/plugins/pubkey/pubkey_plugin.c +++ b/src/libstrongswan/plugins/pubkey/pubkey_plugin.c @@ -19,6 +19,7 @@ #include <library.h> #include "pubkey_cert.h" +#include "pubkey_public_key.h" typedef struct private_pubkey_plugin_t private_pubkey_plugin_t; @@ -54,6 +55,8 @@ plugin_t *plugin_create() lib->creds->add_builder(lib->creds, CRED_CERTIFICATE, CERT_TRUSTED_PUBKEY, (builder_constructor_t)pubkey_cert_builder); + lib->creds->add_builder(lib->creds, CRED_PUBLIC_KEY, KEY_ANY, + (builder_constructor_t)pubkey_public_key_builder); return &this->public.plugin; } diff --git a/src/libstrongswan/plugins/gmp/gmp_public_key.c b/src/libstrongswan/plugins/pubkey/pubkey_public_key.c index 4105f58be..c4805aa98 100644 --- a/src/libstrongswan/plugins/gmp/gmp_public_key.c +++ b/src/libstrongswan/plugins/pubkey/pubkey_public_key.c @@ -16,7 +16,7 @@ * $Id$ */ -#include "gmp_public_key.h" +#include "pubkey_public_key.h" #include <debug.h> #include <asn1/oid.h> @@ -140,7 +140,7 @@ static void add(private_builder_t *this, builder_part_t part, ...) /** * Builder construction function */ -builder_t *gmp_public_key_builder(key_type_t type) +builder_t *pubkey_public_key_builder(key_type_t type) { private_builder_t *this; diff --git a/src/libstrongswan/plugins/gmp/gmp_public_key.h b/src/libstrongswan/plugins/pubkey/pubkey_public_key.h index 2dfa166ae..73fcd1966 100644 --- a/src/libstrongswan/plugins/gmp/gmp_public_key.h +++ b/src/libstrongswan/plugins/pubkey/pubkey_public_key.h @@ -16,12 +16,12 @@ */ /** - * @defgroup gmp_public_key gmp_public_key - * @{ @ingroup gmp_p + * @defgroup pubkey_public_key pubkey_public_key + * @{ @ingroup pubkey_p */ -#ifndef GMP_PUBLIC_KEY_H_ -#define GMP_PUBLIC_KEY_H_ +#ifndef PUBKEY_PUBLIC_KEY_H_ +#define PUBKEY_PUBLIC_KEY_H_ #include <credentials/keys/public_key.h> @@ -31,6 +31,6 @@ * @param type type of the key, must be KEY_ANY * @return builder instance */ -builder_t *gmp_public_key_builder(key_type_t type); +builder_t *pubkey_public_key_builder(key_type_t type); -#endif /*GMP_RSA_PUBLIC_KEY_H_ @}*/ +#endif /*PUBKEY_RSA_PUBLIC_KEY_H_ @}*/ |