summaryrefslogtreecommitdiffhomepage
path: root/svr-kex.c
diff options
context:
space:
mode:
authorMatt Johnston <matt@ucc.asn.au>2004-07-20 12:05:00 +0000
committerMatt Johnston <matt@ucc.asn.au>2004-07-20 12:05:00 +0000
commit62aab2227c2e1aca8e9b807bc203a1d6ecb14daf (patch)
treed93c18c66b00d60d4dd5d8c1c895c987331c083c /svr-kex.c
parent9c676d0ddd4f5cc5ff271653fc1d8acf92c0d69f (diff)
switching to global vars
--HG-- extra : convert_revision : 800073097767c2ac153ab834cbcf0121cb765118
Diffstat (limited to 'svr-kex.c')
-rw-r--r--svr-kex.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/svr-kex.c b/svr-kex.c
index 80f7c0a..4dfa6a7 100644
--- a/svr-kex.c
+++ b/svr-kex.c
@@ -32,6 +32,7 @@
#include "packet.h"
#include "bignum.h"
#include "random.h"
+#include "runopts.h"
static void send_msg_kexdh_reply(mp_int *dh_e);
@@ -125,7 +126,7 @@ static void send_msg_kexdh_reply(mp_int *dh_e) {
/* Create the remainder of the hash buffer, to generate the exchange hash */
/* K_S, the host key */
- buf_put_pub_key(ses.kexhashbuf, ses.opts->hostkey,
+ buf_put_pub_key(ses.kexhashbuf, svr_opts.hostkey,
ses.newkeys->algo_hostkey);
/* e, exchange value sent by the client */
buf_putmpint(ses.kexhashbuf, dh_e);
@@ -153,7 +154,7 @@ static void send_msg_kexdh_reply(mp_int *dh_e) {
/* we can start creating the kexdh_reply packet */
CHECKCLEARTOWRITE();
buf_putbyte(ses.writepayload, SSH_MSG_KEXDH_REPLY);
- buf_put_pub_key(ses.writepayload, ses.opts->hostkey,
+ buf_put_pub_key(ses.writepayload, svr_opts.hostkey,
ses.newkeys->algo_hostkey);
/* put f */
@@ -161,7 +162,7 @@ static void send_msg_kexdh_reply(mp_int *dh_e) {
mp_clear(&dh_f);
/* calc the signature */
- buf_put_sign(ses.writepayload, ses.opts->hostkey,
+ buf_put_sign(ses.writepayload, svr_opts.hostkey,
ses.newkeys->algo_hostkey, ses.hash, SHA1_HASH_SIZE);
/* the SSH_MSG_KEXDH_REPLY is done */