summaryrefslogtreecommitdiffstats
path: root/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c')
-rw-r--r--usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c b/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c
index a0d957d9341..be2623285c1 100644
--- a/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c
+++ b/usr.bin/dig/lib/dns/rdata/generic/sshfp_44.c
@@ -14,7 +14,7 @@
* PERFORMANCE OF THIS SOFTWARE.
*/
-/* $Id: sshfp_44.c,v 1.11 2020/02/26 18:47:25 florian Exp $ */
+/* $Id: sshfp_44.c,v 1.12 2020/02/26 18:47:59 florian Exp $ */
/* RFC 4255 */
@@ -40,7 +40,7 @@ totext_sshfp(ARGS_TOTEXT) {
n = uint8_fromregion(&sr);
isc_region_consume(&sr, 1);
snprintf(buf, sizeof(buf), "%u ", n);
- RETERR(str_totext(buf, target));
+ RETERR(isc_str_tobuffer(buf, target));
/*
* Digest type.
@@ -48,21 +48,21 @@ totext_sshfp(ARGS_TOTEXT) {
n = uint8_fromregion(&sr);
isc_region_consume(&sr, 1);
snprintf(buf, sizeof(buf), "%u", n);
- RETERR(str_totext(buf, target));
+ RETERR(isc_str_tobuffer(buf, target));
/*
* Digest.
*/
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
- RETERR(str_totext(" (", target));
- RETERR(str_totext(tctx->linebreak, target));
+ RETERR(isc_str_tobuffer(" (", target));
+ RETERR(isc_str_tobuffer(tctx->linebreak, target));
if (tctx->width == 0) /* No splitting */
RETERR(isc_hex_totext(&sr, 0, "", target));
else
RETERR(isc_hex_totext(&sr, tctx->width - 2,
tctx->linebreak, target));
if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0)
- RETERR(str_totext(" )", target));
+ RETERR(isc_str_tobuffer(" )", target));
return (ISC_R_SUCCESS);
}