Bugzilla – Attachment 2963 Details for
Bug 2686
SSHD segfaults when trying to load RSA1 host keys
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
don't load RSA1 hostkeys
bz2686.diff (text/plain), 786 bytes, created by
Damien Miller
on 2017-03-15 12:38:48 AEDT
(
hide
)
Description:
don't load RSA1 hostkeys
Filename:
MIME Type:
Creator:
Damien Miller
Created:
2017-03-15 12:38:48 AEDT
Size:
786 bytes
patch
obsolete
>Index: sshd.c >=================================================================== >RCS file: /cvs/src/usr.bin/ssh/sshd.c,v >retrieving revision 1.483 >diff -u -p -r1.483 sshd.c >--- sshd.c 24 Feb 2017 03:16:34 -0000 1.483 >+++ sshd.c 15 Mar 2017 01:38:25 -0000 >@@ -1551,6 +1551,15 @@ main(int ac, char **av) > continue; > key = key_load_private(options.host_key_files[i], "", NULL); > pubkey = key_load_public(options.host_key_files[i], NULL); >+ >+ if ((pubkey != NULL && pubkey->type == KEY_RSA1) || >+ (key != NULL && key->type == KEY_RSA1)) { >+ verbose("Ignoring RSA1 key %s", >+ options.host_key_files[i]) >+ key_free(key); >+ key_free(pubkey); >+ continue; >+ } > if (pubkey == NULL && key != NULL) > pubkey = key_demote(key); > sensitive_data.host_keys[i] = key;
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
Flags:
dtucker
:
ok+
Actions:
View
|
Diff
Attachments on
bug 2686
:
2952
| 2963