Commit 2cd8a160 authored by Mark Andrews's avatar Mark Andrews
Browse files

Missing space totext_tkey()

parent 15330e4f
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: tsig_250.c,v 1.2 1999/02/05 04:57:19 marka Exp $ */
/* $Id: tsig_250.c,v 1.3 1999/02/05 05:15:15 marka Exp $ */
/* draft-ietf-dnsind-tsig-07.txt */
......@@ -97,6 +97,7 @@ totext_any_tsig(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
isc_region_t sr;
isc_region_t sigr;
char buf[sizeof "281474976710655 "];
char *bufp;
dns_name_t name;
dns_name_t prefix;
isc_boolean_t sub;
......@@ -122,8 +123,15 @@ totext_any_tsig(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
(sr.base[2] << 24) | (sr.base[3] << 16) |
(sr.base[4] << 8) | sr.base[5];
isc_region_consume(&sr, 6);
sprintf(buf, "%qu ", sigtime);
RETERR(str_totext(buf, target));
bufp = &buf[sizeof buf - 1];
*bufp-- = 0;
*bufp-- = ' ';
do {
*bufp-- = decdigits[sigtime % 10];
sigtime /= 10;
} while (sigtime != 0);
bufp++;
RETERR(str_totext(bufp, target));
/* Fudge */
n = uint16_fromregion(&sr);
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: tsig_250.h,v 1.2 1999/02/05 04:57:19 marka Exp $ */
/* $Id: tsig_250.h,v 1.3 1999/02/05 05:15:15 marka Exp $ */
/* draft-ietf-dnsind-tsig-07.txt */
......@@ -97,6 +97,7 @@ totext_any_tsig(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
isc_region_t sr;
isc_region_t sigr;
char buf[sizeof "281474976710655 "];
char *bufp;
dns_name_t name;
dns_name_t prefix;
isc_boolean_t sub;
......@@ -122,8 +123,15 @@ totext_any_tsig(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
(sr.base[2] << 24) | (sr.base[3] << 16) |
(sr.base[4] << 8) | sr.base[5];
isc_region_consume(&sr, 6);
sprintf(buf, "%qu ", sigtime);
RETERR(str_totext(buf, target));
bufp = &buf[sizeof buf - 1];
*bufp-- = 0;
*bufp-- = ' ';
do {
*bufp-- = decdigits[sigtime % 10];
sigtime /= 10;
} while (sigtime != 0);
bufp++;
RETERR(str_totext(bufp, target));
/* Fudge */
n = uint16_fromregion(&sr);
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: tkey_249.c,v 1.3 1999/02/04 07:00:32 marka Exp $ */
/* $Id: tkey_249.c,v 1.4 1999/02/05 05:15:16 marka Exp $ */
/* draft-ietf-dnssec-tkey-01.txt */
......@@ -112,6 +112,7 @@ totext_tkey(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
dns_name_fromregion(&name, &sr);
sub = name_prefix(&name, origin, &prefix);
RETERR(dns_name_totext(&prefix, sub, target));
RETERR(str_totext(" ", target));
isc_region_consume(&sr, name_length(&name));
/* Inception */
......
......@@ -15,7 +15,7 @@
* SOFTWARE.
*/
/* $Id: tkey_249.h,v 1.3 1999/02/04 07:00:32 marka Exp $ */
/* $Id: tkey_249.h,v 1.4 1999/02/05 05:15:16 marka Exp $ */
/* draft-ietf-dnssec-tkey-01.txt */
......@@ -112,6 +112,7 @@ totext_tkey(dns_rdata_t *rdata, dns_name_t *origin, isc_buffer_t *target) {
dns_name_fromregion(&name, &sr);
sub = name_prefix(&name, origin, &prefix);
RETERR(dns_name_totext(&prefix, sub, target));
RETERR(str_totext(" ", target));
isc_region_consume(&sr, name_length(&name));
/* Inception */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment