Bugzilla – Attachment 3522 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]
debug failed libcrypto call
bz3279_debug_libcrypto.diff (text/plain), 1.12 KB, created by
Damien Miller
on 2021-05-20 12:05:12 AEST
(
hide
)
Description:
debug failed libcrypto call
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2021-05-20 12:05:12 AEST
Size:
1.12 KB
patch
obsolete
>commit f4fa73e82d001dc8f77efd9fa8a321e369be62d1 >Author: Damien Miller <djm@mindrot.org> >Date: Thu May 20 12:04:04 2021 +1000 > > debug rsa fail > >diff --git a/ssh-rsa.c b/ssh-rsa.c >index 9b14f9a9a..d0bfb5d41 100644 >--- a/ssh-rsa.c >+++ b/ssh-rsa.c >@@ -34,6 +34,7 @@ > #include "sshkey.h" > #include "digest.h" > #include "log.h" >+#include "misc.h" > > #include "openbsd-compat/openssl-compat.h" > >@@ -399,6 +400,14 @@ rsa_hash_alg_oid(int hash_alg, const u_char **oidp, size_t *oidlenp) > return 0; > } > >+static int >+dump_libcrypto_error(const char *str, size_t len, void *u) >+{ >+ debug("%s: libcrypto: %.*s", (char*)u, (int)len, str); >+ return 0; >+} >+ >+ > static int > openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, > u_char *sigbuf, size_t siglen, RSA *rsa) >@@ -428,6 +437,8 @@ openssh_RSA_verify(int hash_alg, u_char *hash, size_t hashlen, > } > if ((len = RSA_public_decrypt(siglen, sigbuf, decrypted, rsa, > RSA_PKCS1_PADDING)) < 0) { >+ debug_f("failed RSA_public_decrypt: sig=%s", tohex(sigbuf, siglen)); >+ ERR_print_errors_cb(dump_libcrypto_error, (void*)__func__); > ret = SSH_ERR_LIBCRYPTO_ERROR; > goto done; > }
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