Lines Matching defs:kkey
111 key_entry_copy_toregion(struct key_entry_key* kkey, struct regional* region)
114 newk = regional_alloc_init(region, kkey, sizeof(*kkey));
117 newk->name = regional_alloc_init(region, kkey->name, kkey->namelen);
124 kkey->entry.data;
155 key_entry_copy(struct key_entry_key* kkey)
158 if(!kkey)
160 newk = memdup(kkey, sizeof(*kkey));
163 newk->name = memdup(kkey->name, kkey->namelen);
173 kkey->entry.data;
220 key_entry_isnull(struct key_entry_key* kkey)
222 struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
227 key_entry_isgood(struct key_entry_key* kkey)
229 struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
234 key_entry_isbad(struct key_entry_key* kkey)
236 struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
241 key_entry_set_reason(struct key_entry_key* kkey, char* reason)
243 struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
248 key_entry_get_reason(struct key_entry_key* kkey)
250 struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
342 key_entry_get_rrset(struct key_entry_key* kkey, struct regional* region)
344 struct key_entry_data* d = (struct key_entry_data*)kkey->entry.data;
353 rrk->rk.dname = regional_alloc_init(region, kkey->name, kkey->namelen);
356 rrk->rk.dname_len = kkey->namelen;
358 rrk->rk.rrset_class = htons(kkey->key_class);
397 key_entry_keysize(struct key_entry_key* kkey)
403 if(!key_entry_isgood(kkey))
405 d = ((struct key_entry_data*)kkey->entry.data)->rrset_data;