Searched refs:nsec3 (Results 1 – 7 of 7) sorted by relevance
/systemd-251/src/resolve/ |
D | resolved-dns-dnssec.c | 1488 int dnssec_nsec3_hash(DnsResourceRecord *nsec3, const char *name, void *ret) { in dnssec_nsec3_hash() argument 1492 assert(nsec3); in dnssec_nsec3_hash() 1496 if (nsec3->key->type != DNS_TYPE_NSEC3) in dnssec_nsec3_hash() 1499 if (nsec3->nsec3.iterations > NSEC3_ITERATIONS_MAX) in dnssec_nsec3_hash() 1502 dns_resource_record_to_string(nsec3)); in dnssec_nsec3_hash() 1504 hash_md_t algorithm = nsec3_hash_to_hash_md(nsec3->nsec3.algorithm); in dnssec_nsec3_hash() 1512 if (nsec3->nsec3.next_hashed_name_size != hash_size) in dnssec_nsec3_hash() 1528 if (EVP_DigestUpdate(ctx, nsec3->nsec3.salt, nsec3->nsec3.salt_size) <= 0) in dnssec_nsec3_hash() 1535 for (unsigned k = 0; k < nsec3->nsec3.iterations; k++) { in dnssec_nsec3_hash() 1540 if (EVP_DigestUpdate(ctx, nsec3->nsec3.salt, nsec3->nsec3.salt_size) <= 0) in dnssec_nsec3_hash() [all …]
|
D | resolved-dns-rr.c | 458 free(rr->nsec3.next_hashed_name); in dns_resource_record_free() 459 free(rr->nsec3.salt); in dns_resource_record_free() 460 bitmap_free(rr->nsec3.types); in dns_resource_record_free() 666 return a->nsec3.algorithm == b->nsec3.algorithm && in dns_resource_record_payload_equal() 667 a->nsec3.flags == b->nsec3.flags && in dns_resource_record_payload_equal() 668 a->nsec3.iterations == b->nsec3.iterations && in dns_resource_record_payload_equal() 669 FIELD_EQUAL(a->nsec3, b->nsec3, salt) && in dns_resource_record_payload_equal() 670 FIELD_EQUAL(a->nsec3, b->nsec3, next_hashed_name) && in dns_resource_record_payload_equal() 671 bitmap_equal(a->nsec3.types, b->nsec3.types); in dns_resource_record_payload_equal() 1057 if (rr->nsec3.salt_size > 0) { in dns_resource_record_to_string() [all …]
|
D | test-dnssec.c | 767 rr->nsec3.algorithm = DNSSEC_DIGEST_SHA1; in TEST() 768 rr->nsec3.flags = 1; in TEST() 769 rr->nsec3.iterations = 1; in TEST() 770 rr->nsec3.salt = memdup(salt, sizeof(salt)); in TEST() 771 assert_se(rr->nsec3.salt); in TEST() 772 rr->nsec3.salt_size = sizeof(salt); in TEST() 773 rr->nsec3.next_hashed_name = memdup(next_hashed_name, sizeof(next_hashed_name)); in TEST() 774 assert_se(rr->nsec3.next_hashed_name); in TEST() 775 rr->nsec3.next_hashed_name_size = sizeof(next_hashed_name); in TEST()
|
D | resolved-dns-packet.c | 1118 r = dns_packet_append_uint8(p, rr->nsec3.algorithm, NULL); in dns_packet_append_rr() 1122 r = dns_packet_append_uint8(p, rr->nsec3.flags, NULL); in dns_packet_append_rr() 1126 r = dns_packet_append_uint16(p, rr->nsec3.iterations, NULL); in dns_packet_append_rr() 1130 r = dns_packet_append_uint8(p, rr->nsec3.salt_size, NULL); in dns_packet_append_rr() 1134 r = dns_packet_append_blob(p, rr->nsec3.salt, rr->nsec3.salt_size, NULL); in dns_packet_append_rr() 1138 r = dns_packet_append_uint8(p, rr->nsec3.next_hashed_name_size, NULL); in dns_packet_append_rr() 1142 … r = dns_packet_append_blob(p, rr->nsec3.next_hashed_name, rr->nsec3.next_hashed_name_size, NULL); in dns_packet_append_rr() 1146 r = dns_packet_append_types(p, rr->nsec3.types, NULL); in dns_packet_append_rr() 2030 r = dns_packet_read_uint8(p, &rr->nsec3.algorithm, NULL); in dns_packet_read_rr() 2034 r = dns_packet_read_uint8(p, &rr->nsec3.flags, NULL); in dns_packet_read_rr() [all …]
|
D | resolved-dns-dnssec.h | 61 int dnssec_nsec3_hash(DnsResourceRecord *nsec3, const char *name, void *ret);
|
D | resolved-dns-rr.h | 233 } nsec3; member
|
D | resolved-dns-cache.c | 664 return !bitmap_isset(rr->nsec3.types, DNS_TYPE_NS) || in rr_eligible() 665 bitmap_isset(rr->nsec3.types, DNS_TYPE_SOA); in rr_eligible()
|