Class ldns_key_list

Class ldns_key_list

class ldns.ldns_key_list

LDNS buffer.

key(nr)

returns a pointer to the key in the list at the given position

Parameters:nr – the position in the list
Returns:(ldns_key *) the key
key_count()

returns the number of keys in the key list

Returns:(size_t) the numbers of keys in the list
keys()

Key list iterator

pop_key()

pops the last rr from a keylist

Returns:(ldns_key *) NULL if nothing to pop. Otherwise the popped RR
push_key(key)

pushes a key to a keylist

Parameters:key – the key to push
Returns:(bool) false on error, otherwise true
set_key_count(count)

Set the keylist’s key count to count.

Parameters:count – the cuont
set_use(v)

Set the ‘use’ flag for all keys in the list.

Parameters:v – The value to set the use flags to

Table Of Contents

Previous topic

Class ldns_key

Next topic

Class ldns_buffer