summaryrefslogtreecommitdiff
path: root/kexecdhs.c
diff options
context:
space:
mode:
Diffstat (limited to 'kexecdhs.c')
-rw-r--r--kexecdhs.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kexecdhs.c b/kexecdhs.c
index ccdbf70b1..dc24a3af6 100644
--- a/kexecdhs.c
+++ b/kexecdhs.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexecdhs.c,v 1.15 2015/12/04 16:41:28 markus Exp $ */ 1/* $OpenBSD: kexecdhs.c,v 1.16 2017/05/30 14:23:52 markus Exp $ */
2/* 2/*
3 * Copyright (c) 2001 Markus Friedl. All rights reserved. 3 * Copyright (c) 2001 Markus Friedl. All rights reserved.
4 * Copyright (c) 2010 Damien Miller. All rights reserved. 4 * Copyright (c) 2010 Damien Miller. All rights reserved.
@@ -47,7 +47,7 @@
47#include "ssherr.h" 47#include "ssherr.h"
48#include "sshbuf.h" 48#include "sshbuf.h"
49 49
50static int input_kex_ecdh_init(int, u_int32_t, void *); 50static int input_kex_ecdh_init(int, u_int32_t, struct ssh *);
51 51
52int 52int
53kexecdh_server(struct ssh *ssh) 53kexecdh_server(struct ssh *ssh)
@@ -58,9 +58,8 @@ kexecdh_server(struct ssh *ssh)
58} 58}
59 59
60static int 60static int
61input_kex_ecdh_init(int type, u_int32_t seq, void *ctxt) 61input_kex_ecdh_init(int type, u_int32_t seq, struct ssh *ssh)
62{ 62{
63 struct ssh *ssh = ctxt;
64 struct kex *kex = ssh->kex; 63 struct kex *kex = ssh->kex;
65 EC_POINT *client_public; 64 EC_POINT *client_public;
66 EC_KEY *server_key = NULL; 65 EC_KEY *server_key = NULL;