Bugzilla – Attachment 2337 Details for
Bug 2154
Avoid key lookup overhead when re-keying
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Cache the host key and compare against it when re-keying
cache-server-host-key.diff (text/plain), 820 bytes, created by
Iain Morgan
on 2013-09-19 07:25:40 AEST
(
hide
)
Description:
Cache the host key and compare against it when re-keying
Filename:
MIME Type:
Creator:
Iain Morgan
Created:
2013-09-19 07:25:40 AEST
Size:
820 bytes
patch
obsolete
>Index: sshconnect.c >=================================================================== >RCS file: /cvs/openssh/sshconnect.c,v >retrieving revision 1.212 >diff -u -r1.212 sshconnect.c >--- sshconnect.c 20 Aug 2013 16:44:25 -0000 1.212 >+++ sshconnect.c 17 Sep 2013 22:52:36 -0000 >@@ -65,6 +65,7 @@ > > char *client_version_string = NULL; > char *server_version_string = NULL; >+Key *previous_host_key = NULL; > > static int matching_host_key_dns = 0; > >@@ -1223,6 +1224,13 @@ > { > int flags = 0; > char *fp; >+ >+ if (key_equal(previous_host_key, host_key)) >+ return 1; >+ >+ /* The key is either accepted, or we discconnect. */ >+ if (previous_host_key == NULL) >+ previous_host_key = key_from_private(host_key); > > fp = key_fingerprint(host_key, SSH_FP_MD5, SSH_FP_HEX); > debug("Server host key: %s %s", key_type(host_key), fp);
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 2154
:
2337
|
2338
|
2341
|
2450