From 8191249d86f356c38eafa5b1ef4b1c422de30052 Mon Sep 17 00:00:00 2001 From: Simon Tatham Date: Thu, 28 Sep 2000 11:05:43 +0000 Subject: [PATCH] DSS key format string was missing some commas [originally from svn r646] --- sshdss.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sshdss.c b/sshdss.c index 86a16176..2a5e2689 100644 --- a/sshdss.c +++ b/sshdss.c @@ -101,15 +101,15 @@ static char *dss_fmtkey(void) { nibbles = (3 + ssh1_bignum_bitcount(dss_p))/4; if (nibbles<1) nibbles=1; for (i=nibbles; i-- ;) p[pos++] = hex[(bignum_byte(dss_p, i/2) >> (4*(i%2))) & 0xF]; - pos += sprintf(p+pos, "0x"); + pos += sprintf(p+pos, ",0x"); nibbles = (3 + ssh1_bignum_bitcount(dss_q))/4; if (nibbles<1) nibbles=1; for (i=nibbles; i-- ;) p[pos++] = hex[(bignum_byte(dss_q, i/2) >> (4*(i%2))) & 0xF]; - pos += sprintf(p+pos, "0x"); + pos += sprintf(p+pos, ",0x"); nibbles = (3 + ssh1_bignum_bitcount(dss_g))/4; if (nibbles<1) nibbles=1; for (i=nibbles; i-- ;) p[pos++] = hex[(bignum_byte(dss_g, i/2) >> (4*(i%2))) & 0xF]; - pos += sprintf(p+pos, "0x"); + pos += sprintf(p+pos, ",0x"); nibbles = (3 + ssh1_bignum_bitcount(dss_y))/4; if (nibbles<1) nibbles=1; for (i=nibbles; i-- ;) p[pos++] = hex[(bignum_byte(dss_y, i/2) >> (4*(i%2))) & 0xF];