X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fresolve%2Fresolved-dns-rr.h;h=9d9a89d38343880f89cb872bb689ce1868d2cb76;hb=8ede9794fdc8e659a6adc1dad4e68e03a36efe13;hp=20a344b8ca53c615ae832c56d3a52a2862d01bc3;hpb=7263f72499e962b3fd54cdb7c79d49ca72121ede;p=elogind.git diff --git a/src/resolve/resolved-dns-rr.h b/src/resolve/resolved-dns-rr.h index 20a344b8c..9d9a89d38 100644 --- a/src/resolve/resolved-dns-rr.h +++ b/src/resolve/resolved-dns-rr.h @@ -116,6 +116,29 @@ struct DnsResourceRecord { void *key; size_t key_size; } sshfp; + + /* http://tools.ietf.org/html/rfc4034#section-2.1 */ + struct { + bool zone_key_flag:1; + bool sep_flag:1; + uint8_t algorithm; + void* key; + size_t key_size; + } dnskey; + + /* http://tools.ietf.org/html/rfc4034#section-3.1 */ + struct { + uint16_t type_covered; + uint8_t algorithm; + uint8_t labels; + uint32_t original_ttl; + uint32_t expiration; + uint32_t inception; + uint16_t key_tag; + char *signer; + void *signature; + size_t signature_size; + } rrsig; }; }; @@ -136,8 +159,6 @@ DnsResourceKey* dns_resource_key_unref(DnsResourceKey *key); int dns_resource_key_equal(const DnsResourceKey *a, const DnsResourceKey *b); int dns_resource_key_match_rr(const DnsResourceKey *key, const DnsResourceRecord *rr); int dns_resource_key_match_cname(const DnsResourceKey *key, const DnsResourceRecord *rr); -unsigned long dns_resource_key_hash_func(const void *i, const uint8_t hash_key[HASH_KEY_SIZE]); -int dns_resource_key_compare_func(const void *a, const void *b); int dns_resource_key_to_string(const DnsResourceKey *key, char **ret); DEFINE_TRIVIAL_CLEANUP_FUNC(DnsResourceKey*, dns_resource_key_unref); @@ -152,3 +173,5 @@ DEFINE_TRIVIAL_CLEANUP_FUNC(DnsResourceRecord*, dns_resource_record_unref); const char *dns_class_to_string(uint16_t type); int dns_class_from_string(const char *name, uint16_t *class); + +extern const struct hash_ops dns_resource_key_hash_ops;