diff options
author | Martin Willi <martin@strongswan.org> | 2009-09-14 20:04:48 +0200 |
---|---|---|
committer | Martin Willi <martin@strongswan.org> | 2009-09-15 08:23:48 +0200 |
commit | 79c6f16212ad69a0c74cd3be5a63dce5e449e2fd (patch) | |
tree | 5cf187e41e854e3cdc119e3f135da28009782b6c /src/libstrongswan/plugins/pgp/pgp_plugin.c | |
parent | 4cb0e1bb76434ae448701c8d51aabbf47aaaeb0e (diff) | |
download | strongswan-79c6f16212ad69a0c74cd3be5a63dce5e449e2fd.tar.bz2 strongswan-79c6f16212ad69a0c74cd3be5a63dce5e449e2fd.tar.xz |
Implemented support for preinstalled PGP certificates in charon
Diffstat (limited to 'src/libstrongswan/plugins/pgp/pgp_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/pgp/pgp_plugin.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/pgp/pgp_plugin.c b/src/libstrongswan/plugins/pgp/pgp_plugin.c index 198b58cbf..eabb3695f 100644 --- a/src/libstrongswan/plugins/pgp/pgp_plugin.c +++ b/src/libstrongswan/plugins/pgp/pgp_plugin.c @@ -18,6 +18,7 @@ #include <library.h> #include "pgp_builder.h" #include "pgp_encoder.h" +#include "pgp_cert.h" typedef struct private_pgp_plugin_t private_pgp_plugin_t; @@ -42,6 +43,9 @@ static void destroy(private_pgp_plugin_t *this) lib->creds->remove_builder(lib->creds, (builder_function_t)pgp_private_key_load); + lib->creds->remove_builder(lib->creds, + (builder_function_t)pgp_cert_load); + lib->encoding->remove_encoder(lib->encoding, pgp_encoder_encode); free(this); @@ -65,6 +69,9 @@ plugin_t *plugin_create() lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA, (builder_function_t)pgp_private_key_load); + lib->creds->add_builder(lib->creds, CRED_CERTIFICATE, CERT_GPG, + (builder_function_t)pgp_cert_load); + lib->encoding->add_encoder(lib->encoding, pgp_encoder_encode); return &this->public.plugin; |