Commit 1c38af72 authored by Daniel Salzman's avatar Daniel Salzman

knsec3hash: replace libdnssec/dname operations with libknot ones

parent 0300d107
......@@ -25,7 +25,6 @@
#include "contrib/strtonum.h"
#include "libdnssec/error.h"
#include "libdnssec/nsec.h"
#include "libdnssec/shared/dname.h"
#include "libdnssec/shared/hex.h"
#include "libknot/libknot.h"
......@@ -151,9 +150,8 @@ int main(int argc, char *argv[])
error("Cannot parse domain name.");
goto fail;
}
dname.size = dname_length(dname.data);
dname_normalize(dname.data);
knot_dname_to_lower(dname.data);
dname.size = knot_dname_size(dname.data);
int r = dnssec_nsec3_hash(&dname, &nsec3_params, &digest);
if (r != DNSSEC_EOK) {
......
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