dns_rdata_toregion(rdata, ®ion);
+ if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
+ RETERR(str_totext("( ", target));
+ }
if (tctx->width == 0) {
- return (isc_hex_totext(®ion, 60, "", target));
+ RETERR(isc_hex_totext(®ion, 60, "", target));
} else {
- return (isc_hex_totext(®ion, tctx->width - 2,
- tctx->linebreak, target));
+ RETERR(isc_hex_totext(®ion, tctx->width - 2,
+ tctx->linebreak, target));
+ }
+ if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
+ RETERR(str_totext(" )", target));
}
+ return (ISC_R_SUCCESS);
}
static inline isc_result_t
dns_rdata_toregion(rdata, ®ion);
+ if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
+ RETERR(str_totext("( ", target));
+ }
if (tctx->width == 0) {
- return (isc_hex_totext(®ion, 60, "", target));
+ RETERR(isc_hex_totext(®ion, 60, "", target));
} else {
- return (isc_hex_totext(®ion, tctx->width - 2,
- tctx->linebreak, target));
+ RETERR(isc_hex_totext(®ion, tctx->width - 2,
+ tctx->linebreak, target));
+ }
+ if ((tctx->flags & DNS_STYLEFLAG_MULTILINE) != 0) {
+ RETERR(str_totext(" )", target));
}
+ return (ISC_R_SUCCESS);
}
static inline isc_result_t