summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sshconnect2.c
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2001-04-04 00:06:55 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2001-04-04 00:06:55 +0000
commitc854dc230b9d6905b3fb0d9534f231522b6a5d81 (patch)
treee13f4bf88db5ff8327d3a5c6974bdc2c5b480227 /usr.bin/ssh/sshconnect2.c
parent2523ebe5de401adafe2f226ed9a1b34f65e93181 (diff)
enable client rekeying
(1) force rekeying with ~R, or (2) if the server requests rekeying. works against ssh-2.0.12/2.0.13/2.1.0/2.2.0/2.3.0/2.3.1/2.4.0
Diffstat (limited to 'usr.bin/ssh/sshconnect2.c')
-rw-r--r--usr.bin/ssh/sshconnect2.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/ssh/sshconnect2.c b/usr.bin/ssh/sshconnect2.c
index dd3f36b5773..1c52231b953 100644
--- a/usr.bin/ssh/sshconnect2.c
+++ b/usr.bin/ssh/sshconnect2.c
@@ -23,7 +23,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: sshconnect2.c,v 1.62 2001/04/03 23:32:12 markus Exp $");
+RCSID("$OpenBSD: sshconnect2.c,v 1.63 2001/04/04 00:06:54 markus Exp $");
#include <openssl/bn.h>
#include <openssl/md5.h>
@@ -69,6 +69,8 @@ int session_id2_len = 0;
char *xxx_host;
struct sockaddr *xxx_hostaddr;
+Kex *xxx_kex = NULL;
+
int
check_host_key_callback(Key *hostkey)
{
@@ -114,6 +116,8 @@ ssh_kex2(char *host, struct sockaddr *hostaddr)
kex->server_version_string=server_version_string;
kex->check_host_key=&check_host_key_callback;
+ xxx_kex = kex;
+
/* start key exchange */
dispatch_run(DISPATCH_BLOCK, &kex->newkeys, kex);