diff options
author | Tobias Brunner <tobias@strongswan.org> | 2013-08-15 12:42:09 +0200 |
---|---|---|
committer | Tobias Brunner <tobias@strongswan.org> | 2013-09-13 15:23:49 +0200 |
commit | f40e9f4d161d79a5e4c93c4b0423c6535b9553f9 (patch) | |
tree | de138620c88f1473b0bc493fe95ad502f7168310 /src/libstrongswan/plugins/sshkey/sshkey_plugin.c | |
parent | 3b939e20a96984584a941da452513220ef0c38af (diff) | |
download | strongswan-f40e9f4d161d79a5e4c93c4b0423c6535b9553f9.tar.bz2 strongswan-f40e9f4d161d79a5e4c93c4b0423c6535b9553f9.tar.xz |
sshkey: Add encoder for RSA keys
Diffstat (limited to 'src/libstrongswan/plugins/sshkey/sshkey_plugin.c')
-rw-r--r-- | src/libstrongswan/plugins/sshkey/sshkey_plugin.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/libstrongswan/plugins/sshkey/sshkey_plugin.c b/src/libstrongswan/plugins/sshkey/sshkey_plugin.c index fe6252671..6409feaf1 100644 --- a/src/libstrongswan/plugins/sshkey/sshkey_plugin.c +++ b/src/libstrongswan/plugins/sshkey/sshkey_plugin.c @@ -17,6 +17,7 @@ #include <library.h> #include "sshkey_builder.h" +#include "sshkey_encoder.h" typedef struct private_sshkey_plugin_t private_sshkey_plugin_t; @@ -51,6 +52,7 @@ METHOD(plugin_t, get_features, int, METHOD(plugin_t, destroy, void, private_sshkey_plugin_t *this) { + lib->encoding->remove_encoder(lib->encoding, sshkey_encoder_encode); free(this); } @@ -70,6 +72,7 @@ plugin_t *sshkey_plugin_create() }, }, ); + lib->encoding->add_encoder(lib->encoding, sshkey_encoder_encode); return &this->public.plugin; } |