summaryrefslogtreecommitdiff
path: root/kexgexs.c
diff options
context:
space:
mode:
authorColin Watson <cjwatson@debian.org>2017-10-04 11:23:58 +0100
committerColin Watson <cjwatson@debian.org>2017-10-05 23:58:12 +0100
commit0556ea972b15607b7e13ff31bc05840881c91dd3 (patch)
treed6b8d48062d0278b5ae0eeff42d0e9afa9f26860 /kexgexs.c
parentdb2122d97eb1ecdd8d99b7bf79b0dd2b5addfd92 (diff)
parent801a62eedaaf47b20dbf4b426dc3e084bf0c8d49 (diff)
New upstream release (7.6p1)
Diffstat (limited to 'kexgexs.c')
-rw-r--r--kexgexs.c12
1 files changed, 5 insertions, 7 deletions
diff --git a/kexgexs.c b/kexgexs.c
index 449603592..c5dd00578 100644
--- a/kexgexs.c
+++ b/kexgexs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexgexs.c,v 1.30 2016/09/12 01:22:38 deraadt Exp $ */ 1/* $OpenBSD: kexgexs.c,v 1.31 2017/05/30 14:23:52 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2000 Niels Provos. All rights reserved. 3 * Copyright (c) 2000 Niels Provos. All rights reserved.
4 * Copyright (c) 2001 Markus Friedl. All rights reserved. 4 * Copyright (c) 2001 Markus Friedl. All rights reserved.
@@ -54,8 +54,8 @@
54#include "sshbuf.h" 54#include "sshbuf.h"
55#include "misc.h" 55#include "misc.h"
56 56
57static int input_kex_dh_gex_request(int, u_int32_t, void *); 57static int input_kex_dh_gex_request(int, u_int32_t, struct ssh *);
58static int input_kex_dh_gex_init(int, u_int32_t, void *); 58static int input_kex_dh_gex_init(int, u_int32_t, struct ssh *);
59 59
60int 60int
61kexgex_server(struct ssh *ssh) 61kexgex_server(struct ssh *ssh)
@@ -67,9 +67,8 @@ kexgex_server(struct ssh *ssh)
67} 67}
68 68
69static int 69static int
70input_kex_dh_gex_request(int type, u_int32_t seq, void *ctxt) 70input_kex_dh_gex_request(int type, u_int32_t seq, struct ssh *ssh)
71{ 71{
72 struct ssh *ssh = ctxt;
73 struct kex *kex = ssh->kex; 72 struct kex *kex = ssh->kex;
74 int r; 73 int r;
75 u_int min = 0, max = 0, nbits = 0; 74 u_int min = 0, max = 0, nbits = 0;
@@ -120,9 +119,8 @@ input_kex_dh_gex_request(int type, u_int32_t seq, void *ctxt)
120} 119}
121 120
122static int 121static int
123input_kex_dh_gex_init(int type, u_int32_t seq, void *ctxt) 122input_kex_dh_gex_init(int type, u_int32_t seq, struct ssh *ssh)
124{ 123{
125 struct ssh *ssh = ctxt;
126 struct kex *kex = ssh->kex; 124 struct kex *kex = ssh->kex;
127 BIGNUM *shared_secret = NULL, *dh_client_pub = NULL; 125 BIGNUM *shared_secret = NULL, *dh_client_pub = NULL;
128 struct sshkey *server_host_public, *server_host_private; 126 struct sshkey *server_host_public, *server_host_private;