/**
* calculates a keytag of a key for use in DNSSEC.
*
- * \param[in] key the key to use for the calc.
+ * \param[in] key the key as an RR to use for the calc.
* \return the keytag
*/
uint16_t ldns_calc_keytag(ldns_rr *key);
* \param[in] rrset the rrset to verify
* \param[in] rrsig a list of signatures to check
* \param[in] keys a list of keys to check with
- * \param[out] good_keys, if this is a (initialized) list, the keys from keys that validate one of the signatures are added to it
+ * \param[out] good_keys if this is a (initialized) list, the keys from keys that validate one of the signatures are added to it
* \return status LDNS_STATUS_OK if there is at least one correct key
*/
ldns_status ldns_verify(ldns_rr_list *rrset, ldns_rr_list *rrsig, ldns_rr_list *keys, ldns_rr_list *good_keys);
/**
* Verifies an rrsig. All keys in the keyset are tried.
- *
* \param[in] rrset the rrset to check
* \param[in] rrsig the signature of the rrset
* \param[in] keys the keys to try
- * \return a list of keys which validate the rrsig + rrset. Return NULL
- * when none of the keys validate.
+ * \param[out] good_keys if this is a (initialized) list, the keys from keys that validate one of the signatures are added to it
+ * \return a list of keys which validate the rrsig + rrset. Return NULL when none of the keys validate.
*/
ldns_status ldns_verify_rrsig_keylist(ldns_rr_list *rrset, ldns_rr *rrsig, ldns_rr_list *keys, ldns_rr_list *good_keys);
+
+
ldns_status ldns_verify_rrsig(ldns_rr_list *rrset, ldns_rr *rrsig, ldns_rr *key);
/**
/**
* Copies the rr_list data to the buffer in wire format
* \param[out] *output buffer to append the result to
- * \param[in] *rr_list rr_list to to convert
+ * \param[in] *rrlist rr_list to to convert
* \return ldns_status
*/
ldns_status ldns_rr_list2buffer_wire(ldns_buffer *output, ldns_rr_list *rrlist);
void ldns_key_deep_free(ldns_key *key);
/**
- * frees a key list structure
- *
- * \param[in] key the key list object to free
+ * Frees a key list structure
+ * \param[in] key_list the key list object to free
*/
void ldns_key_list_free(ldns_key_list *key_list);
* socket. Allocates the data (of size size) itself, so don't forget to free
*
* \param[in] sockfd the socket to read from
+ * \param[in] fr the address of the client (if applicable)
+ * \param[in] *frlen the lenght of the client's addr (if applicable)
* \param[out] size the number of bytes that are read
* \return the data read
*/
* structure.
*
* \param[in] packet pointer to the structure to hold the packet
- * \param[in] buffera the buffer with the data
+ * \param[in] buffer the buffer with the data
* \return LDNS_STATUS_OK if everything succeeds, error otherwise
*/
ldns_status ldns_buffer2pkt_wire(ldns_pkt **packet, ldns_buffer *buffer);