Commit a0d22179 authored by Libor Peltan's avatar Libor Peltan Committed by Daniel Salzman

little cleanup

parent 097c227f
......@@ -149,9 +149,7 @@ int kasp_zone_load(knot_kasp_zone_t *zone,
WALK_LIST(n, key_params) {
key_params_t *parm = n->d;
ret = params2kaspkey(zone_name, parm, &dkeys[i++]);
free(parm->id); // TODO put this into a method
free(parm->public_key.data);
memset(parm, 0, sizeof(*parm));
free_key_params(parm);
if (ret != KNOT_EOK) {
goto kzl_end;
}
......
......@@ -590,12 +590,3 @@ int keymgr_generate_ds(const knot_dname_t *dname, const knot_kasp_key_t *key)
return ret;
}
int keymgr_share_key(kdnssec_ctx_t *ctx, const knot_kasp_key_t *key,
const char *zone_name_ch)
{
knot_dname_t *zone_name = knot_dname_from_str_alloc(zone_name_ch);
int ret = kasp_db_share_key(*ctx->kasp_db, NULL, zone_name, key->id); // TODO fix !!
free(zone_name);
return ret;
}
......@@ -32,6 +32,3 @@ int keymgr_set_timing(knot_kasp_key_t *key, int argc, char *argv[]);
int keymgr_list_keys(kdnssec_ctx_t *ctx);
int keymgr_generate_ds(const knot_dname_t *dname, const knot_kasp_key_t *key);
int keymgr_share_key(kdnssec_ctx_t *ctx, const knot_kasp_key_t *key,
const char *zone_name_ch);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment