rsa2ssh: fix the megashit
This commit is contained in:
parent
8c9e7ded17
commit
82f4c1c0b4
1 changed files with 2 additions and 1 deletions
|
@ -22,6 +22,7 @@ main(int argc, char **argv)
|
||||||
fmtinstall('B', mpfmt);
|
fmtinstall('B', mpfmt);
|
||||||
fmtinstall('[', encodefmt);
|
fmtinstall('[', encodefmt);
|
||||||
|
|
||||||
|
ssh2 = 0;
|
||||||
comment = "";
|
comment = "";
|
||||||
|
|
||||||
ARGBEGIN{
|
ARGBEGIN{
|
||||||
|
@ -50,7 +51,7 @@ main(int argc, char **argv)
|
||||||
p = putmp2(p, k->pub.ek);
|
p = putmp2(p, k->pub.ek);
|
||||||
p = putmp2(p, k->pub.n);
|
p = putmp2(p, k->pub.n);
|
||||||
|
|
||||||
print("ssh-rsa %.*[ %s\n", p-buf, buf, comment);
|
print("ssh-rsa %.*[ %s\n", (int)(p-buf), buf, comment);
|
||||||
} else {
|
} else {
|
||||||
print("%d %.10B %.10B %s\n", mpsignif(k->pub.n), k->pub.ek, k->pub.n, comment);
|
print("%d %.10B %.10B %s\n", mpsignif(k->pub.n), k->pub.ek, k->pub.n, comment);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue