Commit dc648668 authored by Vladimír Čunát's avatar Vladimír Čunát

knot_rdata_t field rename

parent c13fe1f8
......@@ -294,12 +294,12 @@ int kr_dnskeys_trusted(kr_rrset_validation_ctx_t *vctx, const knot_rrset_t *ta)
/* RFC4035 5.3.1, bullet 8 */ /* ZSK */
/* LATER(optim.): more efficient way to iterate than _at() */
const knot_rdata_t *krr = knot_rdataset_at(&keys->rrs, i);
if (!kr_dnssec_key_zsk(krr->rdata) || kr_dnssec_key_revoked(krr->rdata)) {
if (!kr_dnssec_key_zsk(krr->data) || kr_dnssec_key_revoked(krr->data)) {
continue;
}
struct dseckey *key = NULL;
if (kr_dnssec_key_from_rdata(&key, keys->owner, krr->rdata, krr->len) != 0) {
if (kr_dnssec_key_from_rdata(&key, keys->owner, krr->data, krr->len) != 0) {
continue;
}
if (kr_authenticate_referral(ta, (dnssec_key_t *) key) != 0) {
......
......@@ -68,7 +68,7 @@ int kr_authenticate_referral(const knot_rrset_t *ref, const dnssec_key_t *key)
for (uint16_t i = 0; i < ref->rrs.count; ++i) {
dnssec_binary_t ds_rdata = {
.size = rd->len,
.data = rd->rdata
.data = rd->data
};
ret = authenticate_ds(key, &ds_rdata, knot_ds_digest_type(&ref->rrs, i));
if (ret == 0) { /* Found a good DS */
......
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