diff options
author | Markus Friedl <markus@cvs.openbsd.org> | 2017-05-30 14:23:53 +0000 |
---|---|---|
committer | Markus Friedl <markus@cvs.openbsd.org> | 2017-05-30 14:23:53 +0000 |
commit | 62b562e579254c38b60b6ca2666e6096ee7409aa (patch) | |
tree | c3bb7b3a4497b1be9a2d6a5c7d6b6c081a00f2b2 /usr.bin/ssh/kexdhc.c | |
parent | 595b133b2dfdd0d7848ce3b15bdbe2bb7b8d8a93 (diff) |
protocol handlers all get struct ssh passed; ok djm@
Diffstat (limited to 'usr.bin/ssh/kexdhc.c')
-rw-r--r-- | usr.bin/ssh/kexdhc.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/ssh/kexdhc.c b/usr.bin/ssh/kexdhc.c index e283ba55842..efc2772f700 100644 --- a/usr.bin/ssh/kexdhc.c +++ b/usr.bin/ssh/kexdhc.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kexdhc.c,v 1.19 2016/05/02 10:26:04 djm Exp $ */ +/* $OpenBSD: kexdhc.c,v 1.20 2017/05/30 14:23:52 markus Exp $ */ /* * Copyright (c) 2001 Markus Friedl. All rights reserved. * @@ -44,7 +44,7 @@ #include "ssherr.h" #include "sshbuf.h" -static int input_kex_dh(int, u_int32_t, void *); +static int input_kex_dh(int, u_int32_t, struct ssh *); int kexdh_client(struct ssh *ssh) @@ -95,9 +95,8 @@ kexdh_client(struct ssh *ssh) } static int -input_kex_dh(int type, u_int32_t seq, void *ctxt) +input_kex_dh(int type, u_int32_t seq, struct ssh *ssh) { - struct ssh *ssh = ctxt; struct kex *kex = ssh->kex; BIGNUM *dh_server_pub = NULL, *shared_secret = NULL; struct sshkey *server_host_key = NULL; |