Encode RSA public keys in RFC 3110 DNSKEY format

This commit is contained in:
Andreas Steffen
2013-02-19 12:25:00 +01:00
committed by Tobias Brunner
parent f2145c8d3a
commit a4ddc0bb26
8 changed files with 155 additions and 3 deletions
@@ -17,6 +17,7 @@
#include <library.h>
#include "dnskey_builder.h"
#include "dnskey_encoder.h"
typedef struct private_dnskey_plugin_t private_dnskey_plugin_t;
@@ -53,6 +54,8 @@ METHOD(plugin_t, get_features, int,
METHOD(plugin_t, destroy, void,
private_dnskey_plugin_t *this)
{
lib->encoding->remove_encoder(lib->encoding, dnskey_encoder_encode);
free(this);
}
@@ -73,6 +76,8 @@ plugin_t *dnskey_plugin_create()
},
);
lib->encoding->add_encoder(lib->encoding, dnskey_encoder_encode);
return &this->public.plugin;
}