Bugzilla – Attachment 3537 Details for
Bug 3279
UpdateHostKeys triggers "client_global_hostkeys_private_confirm: server gave bad signature for RSA key 0" error message
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
test "program"
xxx.diff (text/plain), 1.27 KB, created by
Damien Miller
on 2021-07-16 10:07:47 AEST
(
hide
)
Description:
test "program"
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2021-07-16 10:07:47 AEST
Size:
1.27 KB
patch
obsolete
>diff --git a/ssh-keygen.c b/ssh-keygen.c >index dedf00205..94828f1fb 100644 >--- a/ssh-keygen.c >+++ b/ssh-keygen.c >@@ -3136,7 +3136,8 @@ main(int argc, char **argv) > const char *errstr; > int log_level = SYSLOG_LEVEL_INFO; > char *sign_op = NULL; >- >+struct sshbuf *b; >+u_char *d; > extern int optind; > extern char *optarg; > >@@ -3151,6 +3152,21 @@ main(int argc, char **argv) > > msetlocale(); > >+ if ((r = sshkey_load_public("/tmp/ggg", &public, NULL)) != 0) >+ fatal_r(r, "key"); >+ if ((b = sshbuf_new()) == NULL) >+ fatal("bbb"); >+ if ((r = sshbuf_b64tod(b, "SEqfLSR1dSBnWFgamZRcwJZNyzjoPsVyBNEPNCEYATFncILLSqqQoL0t8pJ+QDgpA4Zmd8ryVT8VIVanf+hGLOIEZqCOxTDuO+b5eA45ufES2Y2zieIl0gJa0LKidJi1bzbOMi8DEk+RH0u5IxHThw2/uYi0aJjWp7lIM6avnJ7vq3x3yggqumIWHHnX9zhCaB6Npo1LUnsnEEcB9edBNgKFUMzKP1WhwMr6Nb56/dpglxLV0ngSKXeGfJ0ZJc/uiWh5UL6YN+aWpHL5zZKp3Xr79OriXSJbSX2ofSSvmerTMC37vyCF0EqRJ36FDr9Ggo2n5bBKmThkn+DJSiQNQg==")) != 0) >+ fatal_r(r, "bbb"); >+ opt = RSA_size(public->rsa); >+ d = xcalloc(1, opt); >+ if ((opt = RSA_public_decrypt(sshbuf_len(b), sshbuf_ptr(b), d, >+ public->rsa, RSA_PKCS1_PADDING)) < 0) >+ fatal("rsa"); >+ fprintf(stderr, "decrypted: len=%d\n", opt); >+ sshbuf_dump_data(d, opt, stderr); >+ exit(0); >+ > /* we need this for the home * directory. */ > pw = getpwuid(getuid()); > if (!pw)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 3279
:
3505
|
3506
|
3507
|
3513
|
3514
|
3521
|
3522
|
3535
|
3536
| 3537 |
3538