aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstrongswan/plugins/pgp/pgp_plugin.c
diff options
context:
space:
mode:
authorMartin Willi <martin@strongswan.org>2009-08-19 16:26:29 +0200
committerMartin Willi <martin@strongswan.org>2009-08-26 11:23:51 +0200
commitd1b3e8607e249692ea84c7b7856eeb4ee354de49 (patch)
tree2c987de478416ba24790af5017915c77888cd138 /src/libstrongswan/plugins/pgp/pgp_plugin.c
parente773fe4cab7b9d20ef4d50f49893a1779463cf92 (diff)
downloadstrongswan-d1b3e8607e249692ea84c7b7856eeb4ee354de49.tar.bz2
strongswan-d1b3e8607e249692ea84c7b7856eeb4ee354de49.tar.xz
implemented PGP fingerprinting
Diffstat (limited to 'src/libstrongswan/plugins/pgp/pgp_plugin.c')
-rw-r--r--src/libstrongswan/plugins/pgp/pgp_plugin.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/pgp/pgp_plugin.c b/src/libstrongswan/plugins/pgp/pgp_plugin.c
index 5e01d9dd3..d31666b59 100644
--- a/src/libstrongswan/plugins/pgp/pgp_plugin.c
+++ b/src/libstrongswan/plugins/pgp/pgp_plugin.c
@@ -17,6 +17,7 @@
#include <library.h>
#include "pgp_builder.h"
+#include "pgp_encoder.h"
typedef struct private_pgp_plugin_t private_pgp_plugin_t;
@@ -40,6 +41,9 @@ static void destroy(private_pgp_plugin_t *this)
(builder_constructor_t)pgp_public_key_builder);
lib->creds->remove_builder(lib->creds,
(builder_constructor_t)pgp_private_key_builder);
+
+ lib->encoding->remove_encoder(lib->encoding, pgp_encoder_encode);
+
free(this);
}
@@ -59,6 +63,8 @@ plugin_t *plugin_create()
lib->creds->add_builder(lib->creds, CRED_PRIVATE_KEY, KEY_RSA,
(builder_constructor_t)pgp_private_key_builder);
+ lib->encoding->add_encoder(lib->encoding, pgp_encoder_encode);
+
return &this->public.plugin;
}