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/kexgexs.c | |
parent | 595b133b2dfdd0d7848ce3b15bdbe2bb7b8d8a93 (diff) |
protocol handlers all get struct ssh passed; ok djm@
Diffstat (limited to 'usr.bin/ssh/kexgexs.c')
-rw-r--r-- | usr.bin/ssh/kexgexs.c | 12 |
1 files changed, 5 insertions, 7 deletions
diff --git a/usr.bin/ssh/kexgexs.c b/usr.bin/ssh/kexgexs.c index e58db3cf097..7f9bce7a820 100644 --- a/usr.bin/ssh/kexgexs.c +++ b/usr.bin/ssh/kexgexs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: kexgexs.c,v 1.30 2016/09/12 01:22:38 deraadt Exp $ */ +/* $OpenBSD: kexgexs.c,v 1.31 2017/05/30 14:23:52 markus Exp $ */ /* * Copyright (c) 2000 Niels Provos. All rights reserved. * Copyright (c) 2001 Markus Friedl. All rights reserved. @@ -49,8 +49,8 @@ #include "sshbuf.h" #include "misc.h" -static int input_kex_dh_gex_request(int, u_int32_t, void *); -static int input_kex_dh_gex_init(int, u_int32_t, void *); +static int input_kex_dh_gex_request(int, u_int32_t, struct ssh *); +static int input_kex_dh_gex_init(int, u_int32_t, struct ssh *); int kexgex_server(struct ssh *ssh) @@ -62,9 +62,8 @@ kexgex_server(struct ssh *ssh) } static int -input_kex_dh_gex_request(int type, u_int32_t seq, void *ctxt) +input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh) { - struct ssh *ssh = ctxt; struct kex *kex = ssh->kex; int r; u_int min = 0, max = 0, nbits = 0; @@ -115,9 +114,8 @@ input_kex_dh_gex_request(int type, u_int32_t seq, void *ctxt) } static int -input_kex_dh_gex_init(int type, u_int32_t seq, void *ctxt) +input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh) { - struct ssh *ssh = ctxt; struct kex *kex = ssh->kex; BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; struct sshkey *server_host_public, *server_host_private; |