diff options
Diffstat (limited to 'sshconnect2.c')
-rw-r--r-- | sshconnect2.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sshconnect2.c b/sshconnect2.c index dd3f36b57..1c52231b9 100644 --- a/sshconnect2.c +++ b/sshconnect2.c | |||
@@ -23,7 +23,7 @@ | |||
23 | */ | 23 | */ |
24 | 24 | ||
25 | #include "includes.h" | 25 | #include "includes.h" |
26 | RCSID("$OpenBSD: sshconnect2.c,v 1.62 2001/04/03 23:32:12 markus Exp $"); | 26 | RCSID("$OpenBSD: sshconnect2.c,v 1.63 2001/04/04 00:06:54 markus Exp $"); |
27 | 27 | ||
28 | #include <openssl/bn.h> | 28 | #include <openssl/bn.h> |
29 | #include <openssl/md5.h> | 29 | #include <openssl/md5.h> |
@@ -69,6 +69,8 @@ int session_id2_len = 0; | |||
69 | char *xxx_host; | 69 | char *xxx_host; |
70 | struct sockaddr *xxx_hostaddr; | 70 | struct sockaddr *xxx_hostaddr; |
71 | 71 | ||
72 | Kex *xxx_kex = NULL; | ||
73 | |||
72 | int | 74 | int |
73 | check_host_key_callback(Key *hostkey) | 75 | check_host_key_callback(Key *hostkey) |
74 | { | 76 | { |
@@ -114,6 +116,8 @@ ssh_kex2(char *host, struct sockaddr *hostaddr) | |||
114 | kex->server_version_string=server_version_string; | 116 | kex->server_version_string=server_version_string; |
115 | kex->check_host_key=&check_host_key_callback; | 117 | kex->check_host_key=&check_host_key_callback; |
116 | 118 | ||
119 | xxx_kex = kex; | ||
120 | |||
117 | /* start key exchange */ | 121 | /* start key exchange */ |
118 | dispatch_run(DISPATCH_BLOCK, &kex->newkeys, kex); | 122 | dispatch_run(DISPATCH_BLOCK, &kex->newkeys, kex); |
119 | 123 | ||