Bugzilla – Attachment 3424 Details for
Bug 3190
Inconsistent handling of private keys without accompanying public keys
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Proposed patch to fall back to alternative methods of getting public key
file_3190.txt (text/plain), 666 bytes, created by
Jakub Jelen
on 2020-07-03 04:35:44 AEST
(
hide
)
Description:
Proposed patch to fall back to alternative methods of getting public key
Filename:
MIME Type:
Creator:
Jakub Jelen
Created:
2020-07-03 04:35:44 AEST
Size:
666 bytes
patch
obsolete
>--- a/authfile.c >+++ b/authfile.c >@@ -270,13 +270,13 @@ sshkey_load_public(const char *filename, struct sshkey **keyp, char **commentp) > if (commentp != NULL) > *commentp = NULL; > >- if ((r = sshkey_try_load_public(keyp, filename, commentp)) == 0) >+ if ((r = sshkey_try_load_public(keyp, filename, commentp)) > 0) > goto out; > > /* try .pub suffix */ > if (asprintf(&pubfile, "%s.pub", filename) == -1) > return SSH_ERR_ALLOC_FAIL; >- if ((r = sshkey_try_load_public(keyp, pubfile, commentp)) == 0) >+ if ((r = sshkey_try_load_public(keyp, pubfile, commentp)) > 0) > goto out; > > /* finally, try to extract public key from private key file */
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 3190
:
3424
|
3425
|
3428