Lines Matching defs:key1
1097 comparekeys(const dst_key_t *key1, const dst_key_t *key2,
1099 isc_boolean_t (*compare)(const dst_key_t *key1,
1103 REQUIRE(VALID_KEY(key1));
1106 if (key1 == key2)
1109 if (key1->key_alg != key2->key_alg)
1112 if (key1->key_id != key2->key_id) {
1116 if (key1->key_alg == DST_ALG_RSAMD5)
1119 if ((key1->key_flags & DNS_KEYFLAG_REVOKE) ==
1122 if (key1->key_id != key2->key_rid &&
1123 key1->key_rid != key2->key_id)
1128 return (compare(key1, key2));
1139 pub_compare(const dst_key_t *key1, const dst_key_t *key2) {
1146 result = dst_key_todns(key1, &b1);
1151 if ((key1->key_flags & DNS_KEYFLAG_EXTENDED) != 0)
1165 if ((key1->key_flags & DNS_KEYFLAG_EXTENDED) != 0) {
1180 dst_key_compare(const dst_key_t *key1, const dst_key_t *key2) {
1181 return (comparekeys(key1, key2, ISC_FALSE, key1->func->compare));
1185 dst_key_pubcompare(const dst_key_t *key1, const dst_key_t *key2,
1188 return (comparekeys(key1, key2, match_revoked_key, pub_compare));
1193 dst_key_paramcompare(const dst_key_t *key1, const dst_key_t *key2) {
1195 REQUIRE(VALID_KEY(key1));
1198 if (key1 == key2)
1200 if (key1->key_alg == key2->key_alg &&
1201 key1->func->paramcompare != NULL &&
1202 key1->func->paramcompare(key1, key2) == ISC_TRUE)