Bugzilla – Attachment 3209 Details for
Bug 2939
Public key debug printout
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch adding debug feature printing the public key
print-public-key.patch (text/plain), 999 bytes, created by
Andrew Somerville
on 2018-12-06 08:17:09 AEDT
(
hide
)
Description:
Patch adding debug feature printing the public key
Filename:
MIME Type:
Creator:
Andrew Somerville
Created:
2018-12-06 08:17:09 AEDT
Size:
999 bytes
patch
obsolete
>diff --git a/auth2-pubkey.c b/auth2-pubkey.c >index 2fb5950..82cce57 100644 >--- a/auth2-pubkey.c >+++ b/auth2-pubkey.c >@@ -122,6 +122,17 @@ userauth_pubkey(struct ssh *ssh) > "(received %d, expected %d)", __func__, key->type, pktype); > goto done; > } >+ if (log_level_get() >= SYSLOG_LEVEL_DEBUG1) { >+ if ((b = sshbuf_new()) == NULL) >+ fatal("%s: sshbuf_new failed", __func__); >+ if ((r = sshkey_format_text(key, b)) != 0) >+ fatal("%s: sshkey_format_text failed: %s", __func__, >+ ssh_err(r)); >+ debug("%s: public key of %s: %s", __func__, authctxt->user, >+ sshbuf_ptr(b)); >+ sshbuf_free(b); >+ b = NULL; >+ } > if (sshkey_type_plain(key->type) == KEY_RSA && > (ssh->compat & SSH_BUG_RSASIGMD5) != 0) { > logit("Refusing RSA key because client uses unsafe "
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 2939
:
3209
|
3211