aboutsummaryrefslogtreecommitdiff
path: root/sldns/wire2str.h
diff options
context:
space:
mode:
Diffstat (limited to 'sldns/wire2str.h')
-rw-r--r--sldns/wire2str.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/sldns/wire2str.h b/sldns/wire2str.h
index 0167fe7c1e2d..b1ad459e3780 100644
--- a/sldns/wire2str.h
+++ b/sldns/wire2str.h
@@ -495,6 +495,18 @@ int sldns_wire2str_dname_buf(uint8_t* dname, size_t dname_len, char* str,
size_t len);
/**
+ * Convert wire SVCB to a string with user buffer.
+ * @param d: the SVCB data in uncompressed wireformat.
+ * @param dlen: length of the SVCB data.
+ * @param s: the string to write to.
+ * @param slen: length of string.
+ * @return the number of characters for this element, excluding zerobyte.
+ * Is larger or equal than str_len if output was truncated.
+ */
+int sldns_wire2str_svcparam_scan(uint8_t** d, size_t* dlen, char** s,
+ size_t* slen);
+
+/**
* Scan wireformat rdf field to string, with user buffers.
* It shifts the arguments to move along (see sldns_wire2str_pkt_scan).
* @param data: wireformat data.