diff options
author | 2000-05-04 22:37:59 +0000 | |
---|---|---|
committer | 2000-05-04 22:37:59 +0000 | |
commit | f489bed7a2d3631ccc67a14b7651fdbca4053a45 (patch) | |
tree | 7d6de087e89674c165e3505a5cb4e3cbdb26dce9 /usr.bin/ssh/key.c | |
parent | clear padding in ssh2 (diff) | |
download | wireguard-openbsd-f489bed7a2d3631ccc67a14b7651fdbca4053a45.tar.xz wireguard-openbsd-f489bed7a2d3631ccc67a14b7651fdbca4053a45.zip |
replace broken uuencode w/ libc b64_ntop
Diffstat (limited to 'usr.bin/ssh/key.c')
-rw-r--r-- | usr.bin/ssh/key.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/usr.bin/ssh/key.c b/usr.bin/ssh/key.c index 1ce08ad7008..572317a6416 100644 --- a/usr.bin/ssh/key.c +++ b/usr.bin/ssh/key.c @@ -297,11 +297,13 @@ key_write(Key *key, FILE *f) unsigned char *blob, *uu; dsa_make_key_blob(key, &blob, &len); uu = xmalloc(2*len); - n = uuencode(blob, len, uu); - fprintf(f, "%s %s", SSH_DSS, uu); + n = uuencode(blob, len, uu, 2*len); + if (n > 0) { + fprintf(f, "%s %s", SSH_DSS, uu); + success = 1; + } xfree(blob); xfree(uu); - success = 1; } return success; } |