[ldns-users] Key name to be used in ldns_pkt_tsig_verify
kaustubh.gadkari at gmail.com
Fri Feb 3 23:46:53 UTC 2012
I am trying to verify the tsig of a packet that I have received from a
client. For the shared key, I use a key generated with dnssec-keygen.
At my server side, I read the this key into an ldns_key structure
using ldns_key_new_frm_fp() function. I want to use this key to verify
the packet's tsig using the ldns_pkt_tsig_verify() function. This
function asks for the key name, which I tried to get using the
ldns_key_get_file_base_name(), but I get an assertion error for rd !=
What is the correct way to get the key name and key mac to use with
the ldns_pkt_tsig_verify() function?
More information about the ldns-users