Lines Matching refs:dnskey
47 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds1 = NULL, *ds2 = NULL; in TEST()
74 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "nasa.GOV"); in TEST()
75 assert_se(dnskey); in TEST()
77 dnskey->dnskey.flags = 257; in TEST()
78 dnskey->dnskey.protocol = 3; in TEST()
79 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_RSASHA256; in TEST()
80 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
81 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
82 assert_se(dnskey->dnskey.key); in TEST()
84 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
85 log_info("DNSKEY keytag: %u", dnssec_keytag(dnskey, false)); in TEST()
87 assert_se(dnssec_verify_dnskey_by_ds(dnskey, ds1, false) > 0); in TEST()
88 assert_se(dnssec_verify_dnskey_by_ds(dnskey, ds2, false) > 0); in TEST()
111 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *mx = NULL, in TEST()
116 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "example.com."); in TEST()
117 assert_se(dnskey); in TEST()
119 dnskey->dnskey.flags = 257; in TEST()
120 dnskey->dnskey.protocol = 3; in TEST()
121 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_ED25519; in TEST()
122 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
123 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
124 assert_se(dnskey->dnskey.key); in TEST()
126 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
168 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0); in TEST()
174 assert_se(dnssec_verify_rrset(answer, mx->key, rrsig, dnskey, in TEST()
203 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *mx = NULL, in TEST()
208 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "example.com."); in TEST()
209 assert_se(dnskey); in TEST()
211 dnskey->dnskey.flags = 257; in TEST()
212 dnskey->dnskey.protocol = 3; in TEST()
213 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_ED25519; in TEST()
214 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
215 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
216 assert_se(dnskey->dnskey.key); in TEST()
218 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
260 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0); in TEST()
266 assert_se(dnssec_verify_rrset(answer, mx->key, rrsig, dnskey, in TEST()
296 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *a = NULL, in TEST()
301 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "example.net."); in TEST()
302 assert_se(dnskey); in TEST()
304 dnskey->dnskey.flags = 257; in TEST()
305 dnskey->dnskey.protocol = 3; in TEST()
306 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_ECDSAP256SHA256; in TEST()
307 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
308 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
309 assert_se(dnskey->dnskey.key); in TEST()
311 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
351 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0); in TEST()
357 assert_se(dnssec_verify_rrset(answer, a->key, rrsig, dnskey, in TEST()
391 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *dnskey = NULL, *ds = NULL, *a = NULL, in TEST()
396 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "example.net."); in TEST()
397 assert_se(dnskey); in TEST()
399 dnskey->dnskey.flags = 257; in TEST()
400 dnskey->dnskey.protocol = 3; in TEST()
401 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_ECDSAP384SHA384; in TEST()
402 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
403 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
404 assert_se(dnskey->dnskey.key); in TEST()
406 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
446 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0); in TEST()
452 assert_se(dnssec_verify_rrset(answer, a->key, rrsig, dnskey, in TEST()
481 … _cleanup_(dns_resource_record_unrefp) DnsResourceRecord *a = NULL, *rrsig = NULL, *dnskey = NULL; in TEST()
510 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "nASA.gOV"); in TEST()
511 assert_se(dnskey); in TEST()
513 dnskey->dnskey.flags = 256; in TEST()
514 dnskey->dnskey.protocol = 3; in TEST()
515 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_RSASHA256; in TEST()
516 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
517 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
518 assert_se(dnskey->dnskey.key); in TEST()
520 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
521 log_info("DNSKEY keytag: %u", dnssec_keytag(dnskey, false)); in TEST()
524 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0); in TEST()
531 …assert_se(dnssec_verify_rrset(answer, a->key, rrsig, dnskey, 1449092754*USEC_PER_SEC, &result) >= … in TEST()
559 …cleanup_(dns_resource_record_unrefp) DnsResourceRecord *nsec = NULL, *rrsig = NULL, *dnskey = NULL; in TEST()
601 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "nASA.gOV"); in TEST()
602 assert_se(dnskey); in TEST()
604 dnskey->dnskey.flags = 256; in TEST()
605 dnskey->dnskey.protocol = 3; in TEST()
606 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_RSASHA256; in TEST()
607 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
608 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
609 assert_se(dnskey->dnskey.key); in TEST()
611 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
612 log_info("DNSKEY keytag: %u", dnssec_keytag(dnskey, false)); in TEST()
615 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0); in TEST()
622 …assert_se(dnssec_verify_rrset(answer, nsec->key, rrsig, dnskey, 1449849318*USEC_PER_SEC, &result) … in TEST()
666 …nsResourceRecord *mx1 = NULL, *mx2 = NULL, *mx3 = NULL, *mx4 = NULL, *rrsig = NULL, *dnskey = NULL; in TEST()
724 dnskey = dns_resource_record_new_full(DNS_CLASS_IN, DNS_TYPE_DNSKEY, "kodapan.se"); in TEST()
725 assert_se(dnskey); in TEST()
727 dnskey->dnskey.flags = 256; in TEST()
728 dnskey->dnskey.protocol = 3; in TEST()
729 dnskey->dnskey.algorithm = DNSSEC_ALGORITHM_RSASHA256; in TEST()
730 dnskey->dnskey.key_size = sizeof(dnskey_blob); in TEST()
731 dnskey->dnskey.key = memdup(dnskey_blob, sizeof(dnskey_blob)); in TEST()
732 assert_se(dnskey->dnskey.key); in TEST()
734 log_info("DNSKEY: %s", strna(dns_resource_record_to_string(dnskey))); in TEST()
735 log_info("DNSKEY keytag: %u", dnssec_keytag(dnskey, false)); in TEST()
741 assert_se(dnssec_rrsig_match_dnskey(rrsig, dnskey, false) > 0); in TEST()
751 …assert_se(dnssec_verify_rrset(answer, mx1->key, rrsig, dnskey, 1582534685*USEC_PER_SEC, &result) >… in TEST()