Searched refs:ds (Results 1 – 9 of 9) sorted by relevance
/systemd-251/src/resolve/ |
D | test-dnssec.c | 53 ds1->ds.key_tag = 47857; in TEST() 54 ds1->ds.algorithm = DNSSEC_ALGORITHM_RSASHA256; in TEST() 55 ds1->ds.digest_type = DNSSEC_DIGEST_SHA1; in TEST() 56 ds1->ds.digest_size = sizeof(ds1_fprint); in TEST() 57 ds1->ds.digest = memdup(ds1_fprint, ds1->ds.digest_size); in TEST() 58 assert_se(ds1->ds.digest); in TEST() 65 ds2->ds.key_tag = 47857; in TEST() 66 ds2->ds.algorithm = DNSSEC_ALGORITHM_RSASHA256; in TEST() 67 ds2->ds.digest_type = DNSSEC_DIGEST_SHA256; in TEST() 68 ds2->ds.digest_size = sizeof(ds2_fprint); in TEST() [all …]
|
D | resolved-dns-rr.c | 436 free(rr->ds.digest); in dns_resource_record_free() 633 return a->ds.key_tag == b->ds.key_tag && in dns_resource_record_payload_equal() 634 a->ds.algorithm == b->ds.algorithm && in dns_resource_record_payload_equal() 635 a->ds.digest_type == b->ds.digest_type && in dns_resource_record_payload_equal() 636 FIELD_EQUAL(a->ds, b->ds, digest); in dns_resource_record_payload_equal() 930 t = hexmem(rr->ds.digest, rr->ds.digest_size); in dns_resource_record_to_string() 936 rr->ds.key_tag, in dns_resource_record_to_string() 937 rr->ds.algorithm, in dns_resource_record_to_string() 938 rr->ds.digest_type, in dns_resource_record_to_string() 1433 siphash24_compress(&rr->ds.key_tag, sizeof(rr->ds.key_tag), state); in dns_resource_record_hash_func() [all …]
|
D | resolved-dns-trust-anchor.c | 55 rr->ds.key_tag = key_tag; in add_root_ksk() 56 rr->ds.algorithm = algorithm; in add_root_ksk() 57 rr->ds.digest_type = digest_type; in add_root_ksk() 58 rr->ds.digest_size = digest_size; in add_root_ksk() 59 rr->ds.digest = memdup(digest, rr->ds.digest_size); in add_root_ksk() 60 if (!rr->ds.digest) in add_root_ksk() 285 rr->ds.key_tag = kt; in dns_trust_anchor_load_positive() 286 rr->ds.algorithm = a; in dns_trust_anchor_load_positive() 287 rr->ds.digest_type = dt; in dns_trust_anchor_load_positive() 288 rr->ds.digest_size = l; in dns_trust_anchor_load_positive() [all …]
|
D | resolved-dns-dnssec.c | 1330 int dnssec_verify_dnskey_by_ds(DnsResourceRecord *dnskey, DnsResourceRecord *ds, bool mask_revoke) { in dnssec_verify_dnskey_by_ds() argument 1335 assert(ds); in dnssec_verify_dnskey_by_ds() 1341 if (ds->key->type != DNS_TYPE_DS) in dnssec_verify_dnskey_by_ds() 1350 if (dnskey->dnskey.algorithm != ds->ds.algorithm) in dnssec_verify_dnskey_by_ds() 1352 if (dnssec_keytag(dnskey, mask_revoke) != ds->ds.key_tag) in dnssec_verify_dnskey_by_ds() 1359 hash_md_t md_algorithm = digest_to_hash_md(ds->ds.digest_type); in dnssec_verify_dnskey_by_ds() 1371 if (ds->ds.digest_size != hash_size) in dnssec_verify_dnskey_by_ds() 1412 if (ds->ds.digest_size != hash_size) in dnssec_verify_dnskey_by_ds() 1433 return memcmp(result, ds->ds.digest, ds->ds.digest_size) == 0; in dnssec_verify_dnskey_by_ds() 1437 DnsResourceRecord *ds; in dnssec_verify_dnskey_by_ds_search() local [all …]
|
D | resolved-dns-packet.c | 1027 r = dns_packet_append_uint16(p, rr->ds.key_tag, NULL); in dns_packet_append_rr() 1031 r = dns_packet_append_uint8(p, rr->ds.algorithm, NULL); in dns_packet_append_rr() 1035 r = dns_packet_append_uint8(p, rr->ds.digest_type, NULL); in dns_packet_append_rr() 1039 r = dns_packet_append_blob(p, rr->ds.digest, rr->ds.digest_size, NULL); in dns_packet_append_rr() 1881 r = dns_packet_read_uint16(p, &rr->ds.key_tag, NULL); in dns_packet_read_rr() 1885 r = dns_packet_read_uint8(p, &rr->ds.algorithm, NULL); in dns_packet_read_rr() 1889 r = dns_packet_read_uint8(p, &rr->ds.digest_type, NULL); in dns_packet_read_rr() 1897 &rr->ds.digest, &rr->ds.digest_size, in dns_packet_read_rr() 1902 if (rr->ds.digest_size <= 0) in dns_packet_read_rr()
|
D | resolved-dns-dnssec.h | 54 int dnssec_verify_dnskey_by_ds(DnsResourceRecord *dnskey, DnsResourceRecord *ds, bool mask_revoke);
|
D | resolved-dns-transaction.c | 2382 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *ds = NULL; in dns_transaction_request_dnssec_keys() 2397 … ds = dns_resource_key_new(rr->key->class, DNS_TYPE_DS, dns_resource_key_name(rr->key)); in dns_transaction_request_dnssec_keys() 2398 if (!ds) in dns_transaction_request_dnssec_keys() 2403 r = dns_transaction_request_dnssec_rr(t, ds); in dns_transaction_request_dnssec_keys() 2412 _cleanup_(dns_resource_key_unrefp) DnsResourceKey *ds = NULL; in dns_transaction_request_dnssec_keys() 2451 … ds = dns_resource_key_new(rr->key->class, DNS_TYPE_DS, dns_resource_key_name(rr->key)); in dns_transaction_request_dnssec_keys() 2452 if (!ds) in dns_transaction_request_dnssec_keys() 2457 r = dns_transaction_request_dnssec_rr(t, ds); in dns_transaction_request_dnssec_keys()
|
D | resolved-dns-rr.h | 221 } ds; member
|
/systemd-251/src/home/ |
D | homectl.c | 1781 uint64_t ds; in parse_disk_size() local 1783 r = parse_size(t, 1024, &ds); in parse_disk_size() 1787 … if (ds >= UINT64_MAX) /* UINT64_MAX has special meaning for us ("dont change"), refuse */ in parse_disk_size() 1790 *ret = ds; in parse_disk_size() 1799 uint64_t ds = UINT64_MAX; in resize_home() local 1814 r = parse_disk_size(argv[2], &ds); in resize_home() 1820 if (ds != UINT64_MAX && ds != arg_disk_size) in resize_home() 1823 ds = arg_disk_size; in resize_home() 1838 r = sd_bus_message_append(m, "st", argv[1], ds); in resize_home()
|