From f01c8453d56f810031ded37ed9e37e71e7474089 Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Thu, 12 Apr 2018 00:32:03 +0000 Subject: Document the CAA functions --- doc/libs6dns/s6dns-fmt.html | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'doc/libs6dns/s6dns-fmt.html') diff --git a/doc/libs6dns/s6dns-fmt.html b/doc/libs6dns/s6dns-fmt.html index 9534c76..247257a 100644 --- a/doc/libs6dns/s6dns-fmt.html +++ b/doc/libs6dns/s6dns-fmt.html @@ -89,5 +89,14 @@ the output would be more than max bytes, 0 ENAMETOOLONG is returned. To avoid that, S6DNS_FMT_SRV is a suitable number of bytes to preallocate s.

+

+ size_t s6dns_fmt_caa (char *s, size_t max, s6dns_message_rr_caa_t const *p)
+Writes into string s the CAA contained in *p: flags, then tag, +then value, separated by spaces. +Returns the number of bytes written, or 0 in case of failure. If +the output would be more than max bytes, 0 ENAMETOOLONG is returned. +To avoid that, S6DNS_FMT_CAA is a suitable number of bytes to preallocate s. +

+ -- cgit v1.2.3