*/
void ldns_rr_list_set_rr_count(ldns_rr_list *rr_list, size_t count);
-/* set a specific rr */
+/**
+ * set a rr on a specific index in a ldns_rr_list
+ * \param[in] rr_list the rr_list to use
+ * \param[in] r the rr to set
+ * \param[in] count index into the rr_list
+ * \return the old rr which was stored in the rr_list, or
+ * NULL is the index was too large
+ * set a specific rr */
ldns_rr * ldns_rr_list_set_rr(ldns_rr_list *rr_list, ldns_rr *r, size_t count);
/**
/**
* frees an rr_list structure.
* \param[in] rr_list the list to free
- * \return void
*/
void ldns_rr_list_free(ldns_rr_list *rr_list);
/**
* frees an rr_list structure and all rrs contained therein.
* \param[in] rr_list the list to free
- * \return void
*/
void ldns_rr_list_deep_free(ldns_rr_list *rr_list);
*/
uint8_t ldns_rr_label_count(ldns_rr *rr);
-/* todo */
-
/**
* returns the resource record descriptor for the given rr type.
*
ldns_rr_type ldns_rdf2rr_type(const ldns_rdf *rd);
/* added while doing lua */
+/* TODO document or delete it */
bool ldns_rr_list_insert_rr(ldns_rr_list *rr_list, ldns_rr *r, size_t count);
#endif /* _LDNS_RR_H */
*
* \return true if tsig is correct, false if not, or if tsig is not set
*/
-bool ldns_pkt_tsig_verify(ldns_pkt *pkt, uint8_t *wire, size_t wire_size,
- const char *key_name, const char *key_data, ldns_rdf *mac);
+bool ldns_pkt_tsig_verify(ldns_pkt *pkt, uint8_t *wire, size_t wire_size, const char *key_name, const char *key_data, ldns_rdf *mac);
/**
* creates a tsig rr for the given packet and key (string?).
* \param[in] query_mac is added to the digest if not NULL (so NULL is for signing queries, not NULL is for signing answers)
* \return status (OK if success)
*/
-ldns_status ldns_pkt_tsig_sign(ldns_pkt *pkt, const char *key_name,
- const char *key_data, uint16_t fudge, const char *algorithm_name,
- ldns_rdf *query_mac);
+ldns_status ldns_pkt_tsig_sign(ldns_pkt *pkt, const char *key_name, const char *key_data, uint16_t fudge, const char *algorithm_name, ldns_rdf *query_mac);
#endif /* _LDNS_TSIG_H_ */
*
* Functions for RFC 2136 Dynamic Update
*
- * Copyright (c) 2005, NLnet Labs. All rights reserved.
+ * Copyright (c) 2005, 2006, NLnet Labs. All rights reserved.
*
* See LICENSE for the license.
*/
#ifndef _LDNS_UPDATE_H
#define _LDNS_UPDATE_H
-ldns_pkt *ldns_update_pkt_new(ldns_rdf *, ldns_rr_class, ldns_rr_list *,
- ldns_rr_list *, ldns_rr_list *);
+/**
+ *
+ */
+
+ldns_pkt *ldns_update_pkt_new(ldns_rdf *, ldns_rr_class, ldns_rr_list *, ldns_rr_list *, ldns_rr_list *);
ldns_status ldns_update_pkt_tsig_add(ldns_pkt *, ldns_resolver *);
-ldns_resolver *ldns_update_resolver_new(const char *, const char *,
- ldns_rr_class, ldns_tsig_credentials *, ldns_rdf **);
+ldns_resolver *ldns_update_resolver_new(const char *, const char *, ldns_rr_class, ldns_tsig_credentials *, ldns_rdf **);
uint16_t ldns_update_get_zo(const ldns_pkt *);
uint16_t ldns_update_get_pr(const ldns_pkt *);