* Verifies the tsig rr for the given packet and key (string?)
* wire must be given too because tsig does not sign normalized packet
* packet is still given (and used, but could be constructed from wire)
- remove that?
- * @return true if tsig is correct, false if not, or if tsig is not set
+ * remove that?
+ * \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);
/**
* Creates a tsig rr for the given packet and key (string?)
*
- * @param pkt the packet to sign
- * @param key_name the name of the shared key
- * @param key_data the key in base 64 format
- * @param fudge seconds of error permitted in time signed
- * @param algorithm_name the name of the algorithm used (TODO more than only hmac-md5.sig-alg.reg.int.?)
- * @param 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)
+ * \param[in] pkt the packet to sign
+ * \param[in] key_name the name of the shared key
+ * \param[in]key_data the key in base 64 format
+ * \param[in] fudge seconds of error permitted in time signed
+ * \param[in] algorithm_name the name of the algorithm used (TODO more than only hmac-md5.sig-alg.reg.int.?)
+ * \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);
* \param[in] nr return this rr
* \return the rr at position nr
*/
-ldns_rr * ldns_rr_list_rr(ldns_rr_list *rr_list, uint16_t nr);
+ldns_rr* ldns_rr_list_rr(ldns_rr_list *rr_list, uint16_t nr);
/**
* create a new rr_list strcture
* \return a new rr_list structure
*/
-ldns_rr_list * ldns_rr_list_new();
+ldns_rr_list* ldns_rr_list_new();
/**
* free an rr_list structure
* \param[in] right the rightside
* \return a new rr_list with leftside/rightside concatenated
*/
-ldns_rr_list * ldns_rr_list_cat(ldns_rr_list *left, ldns_rr_list *right);
+ldns_rr_list* ldns_rr_list_cat(ldns_rr_list *left, ldns_rr_list *right);
/**
* push an rr to a rrlist
* \param[in] rr_list the rr_list to pop from
* \return NULL if nothing to pop. Otherwise the popped RR
*/
-ldns_rr * ldns_rr_list_pop_rr(ldns_rr_list *rr_list);
+ldns_rr* ldns_rr_list_pop_rr(ldns_rr_list *rr_list);
/**
* check if an rr_list is a rrset
* \return NULL if nothing to pop. Otherwise the popped RR
*
*/
-ldns_rr * ldns_rr_set_pop_rr(ldns_rr_list *rr_list);
+ldns_rr* ldns_rr_set_pop_rr(ldns_rr_list *rr_list);
/**
* \param[in] rr the rr to clone
* \return the new rr or NULL on failure
*/
-ldns_rr * ldns_rr_deep_clone(const ldns_rr *rr);
+ldns_rr* ldns_rr_deep_clone(const ldns_rr *rr);
/**
* Clone an rr list
* \param[in] rrlist the rrlist to clone
* \return the cloned rr list
*/
-ldns_rr_list * ldns_rr_list_deep_clone(ldns_rr_list *rrlist);
+ldns_rr_list* ldns_rr_list_deep_clone(ldns_rr_list *rrlist);
/**
* sort an rr_list. the sorting is done inband