* ";;" will be emitted indicating section name.
*\li If #DNS_MESSAGETEXTFLAG_NOHEADERS is cleared, header lines will be
* emitted.
- *\li If #DNS_MESSAGETEXTFLAG_ONESOA is set then only print the first
+ *\li If #DNS_MESSAGETEXTFLAG_ONESOA is set then only print the first
* SOA record in the answer section.
*\li If *#DNS_MESSAGETEXTFLAG_OMITSOA is set don't print any SOA records
* in the answer section.
* 'preserve_order' setting.
*
* Requires:
- *\li "msg" be valid.
+ *\li "msg" be a valid message with parsing intent.
*
- *\li "buffer" be a wire format buffer.
+ *\li "source" be a wire format buffer.
*
* Ensures:
*\li The buffer's data format is correct.
*
* Requires:
*
- *\li 'msg' be valid.
+ *\li 'msg' be a valid message with rendering intent.
+ *
+ *\li dns_message_renderbegin() has not previously been called.
*
*\li 'cctx' be valid.
*
*
*\li 'msg' be valid.
*
- *\li dns_message_renderbegin() was called.
- *
* Returns:
*\li #ISC_R_SUCCESS -- all is well.
*\li #ISC_R_NOSPACE -- not enough free space in the buffer.
*
*\li 'space' is less than or equal to the total amount of space reserved
* via prior calls to dns_message_renderreserve().
- *
- *\li dns_message_renderbegin() was called.
*/
isc_result_t
*
* Requires:
*
- *\li 'msg' be valid.
+ *\li 'msg' be valid.
*
*\li 'section' be a valid section.
*
*
* Requires:
*
- * \li 'msg' be valid.
+ *\li 'msg' be valid.
*
*\li 'section' be a valid section.
*
*
* Requires:
*
- *\li 'msg' be valid, and be a renderable message.
+ *\li 'msg' be a valid message with rendering intent.
*
*\li 'name' be a valid absolute name.
*
*
* Requires:
*
- *\li 'msg' is a valid message with parsing intent, and contains a query.
+ *\li 'msg' is a valid message which contains a query.
*
* Ensures:
*
*\li 'msg' is a valid message with rendering intent
* and no sections have been rendered.
*
- *\li 'opt' is a valid OPT record or NULL.
+ *\li 'opt' is a valid OPT rdataset or NULL.
*
* Ensures:
*
*
* Ensures:
*
- * \li If 'owner' is not NULL, it will point to the owner name.
+ *\li If 'owner' is not NULL, it will point to the owner name.
*/
isc_result_t
dns_message_settsigkey(dns_message_t *msg, dns_tsigkey_t *key);
/*%<
* Set the tsig key for 'msg'. This is only necessary for when rendering a
- * query or parsing a response. The key (if non-NULL) is attached to, and
- * will be detached when the message is destroyed.
+ * query or parsing a response. The key (if non-NULL) is attached to
+ * to the message, and will be detached when the message is destroyed.
*
* Requires:
*
- *\li 'msg' is a valid message with rendering intent,
- * dns_message_renderbegin() has been called, and no sections have been
- * rendered.
+ *\li 'msg' is a valid message.
+ *
*\li 'key' is a valid tsig key or NULL.
*
* Returns:
*
* Requires:
*
- *\li 'msg' is a valid message
+ *\li 'msg' is a valid message, and dns_message_settsigkey() has been
+ * run previously.
*/
void
*
* Requires:
*
- *\li 'querytsig' is a valid buffer as returned by dns_message_getquerytsig()
+ *\li 'querytsig' is a valid buffer as returned by dns_message_getquerytsig(),
* or NULL
*
- *\li 'msg' is a valid message
+ *\li 'msg' is a valid message on which dns_message_setquerytsig() has
+ * not previously been run.
*/
isc_result_t
*
* Ensures:
*
- * \li If 'owner' is not NULL, it will point to the owner name.
+ *\li If 'owner' is not NULL, it will point to the owner name.
*/
isc_result_t
*
* Requires:
*
- *\li msg is a valid parsed message.
+ *\li msg is a valid message with parsing intent.
*\li signer is a valid name
*
* Returns:
* ('from') and the receiving socket ('to') must be provided.
*
* Requires:
- * \li 'message' be a valid DNS message.
- * \li 'description' to be non-NULL.
- * \li 'address' to be non-NULL (dns_message_logpacketfrom() only).
- * \li 'from' and 'to' be non-NULL (dns_message_logpacketfromto() only).
- * \li 'category' to be a valid logging category.
- * \li 'module' to be a valid logging module.
- * \li 'mctx' to be a valid memory context.
+ *\li 'message' be a valid DNS message.
+ *\li 'description' to be non-NULL.
+ *\li 'address' to be non-NULL (dns_message_logpacketfrom() only).
+ *\li 'from' and 'to' be non-NULL (dns_message_logpacketfromto() only).
+ *\li 'category' to be a valid logging category.
+ *\li 'module' to be a valid logging module.
+ *\li 'mctx' to be a valid memory context.
*/
isc_result_t
* Built a opt record.
*
* Requires:
- * \li msg be a valid message.
- * \li opt to be a non NULL and *opt to be NULL.
+ *\li msg be a valid message.
+ *\li opt to be a non NULL and *opt to be NULL.
*
* Returns:
- * \li ISC_R_SUCCESS
- * \li ISC_R_NOSPACE
+ *\li ISC_R_SUCCESS
+ *\li ISC_R_NOSPACE
*/
void
* Set the expected class of records in the response.
*
* Requires:
- * \li msg be a valid message with parsing intent.
+ *\li msg be a valid message with parsing intent.
*/
void
* 0 means no padding (default).
*
* Requires:
- * \li msg be a valid message.
+ *\li msg be a valid message.
*/
void
* when parsing.
*
* Requires:
- * \li msg be a valid message.
+ *\li msg be a valid message.
*/
isc_result_t
* message.
*
* Requires:
- * \li msg be a valid rendered message;
- * \li 'pttl != NULL'.
+ *\li msg be a valid rendered message;
+ *\li 'pttl != NULL'.
*/
isc_result_t
* section. If neither of these are set, return ISC_R_NOTFOUND.
*
* Requires:
- * \li msg be a valid rendered message;
- * \li 'pttl != NULL'.
+ *\li msg be a valid rendered message;
+ *\li 'pttl != NULL'.
*/
void