summaryrefslogtreecommitdiffstats
path: root/lib/dnssec/ta.h
diff options
context:
space:
mode:
authorVladimír Čunát <vladimir.cunat@nic.cz>2021-05-06 15:31:11 +0200
committerVladimír Čunát <vladimir.cunat@nic.cz>2021-05-10 18:36:18 +0200
commite55d8113f7b700d4bcb869a31381b8306471208a (patch)
tree94cc4f982bda1f29a32aa3b408b3906529ad53c0 /lib/dnssec/ta.h
parentlib/dnssec/ta kr_ta_covers_qry(): generalize and improve (diff)
downloadknot-resolver-e55d8113f7b700d4bcb869a31381b8306471208a.tar.xz
knot-resolver-e55d8113f7b700d4bcb869a31381b8306471208a.zip
lib/dnssec/ta: remove unused kr_ta_covers() function
It was word-for-word identical with kr_ta_get_longest_name() anyway, except for additional pointer->bool conversion.
Diffstat (limited to 'lib/dnssec/ta.h')
-rw-r--r--lib/dnssec/ta.h11
1 files changed, 1 insertions, 10 deletions
diff --git a/lib/dnssec/ta.h b/lib/dnssec/ta.h
index 8f3885a2..197589af 100644
--- a/lib/dnssec/ta.h
+++ b/lib/dnssec/ta.h
@@ -31,16 +31,6 @@ KR_EXPORT
int kr_ta_add(map_t *trust_anchors, const knot_dname_t *name, uint16_t type,
uint32_t ttl, const uint8_t *rdata, uint16_t rdlen);
-/**
- * Return true if the name is below/at any TA in the store.
- * This can be useful to check if it's possible to validate a name beforehand.
- * @param trust_anchors trust store
- * @param name name of the TA
- * @return boolean
- */
-KR_EXPORT KR_PURE
-int kr_ta_covers(map_t *trust_anchors, const knot_dname_t *name);
-
struct kr_context;
/**
@@ -90,3 +80,4 @@ void kr_ta_clear(map_t *trust_anchors);
*/
KR_EXPORT
const knot_dname_t *kr_ta_get_longest_name(map_t *trust_anchors, const knot_dname_t *name);
+