summaryrefslogtreecommitdiff
path: root/kexc25519c.c
diff options
context:
space:
mode:
authordjm@openbsd.org <djm@openbsd.org>2017-05-31 04:17:12 +0000
committerDamien Miller <djm@mindrot.org>2017-05-31 14:17:41 +1000
commit2a108277f976e8d0955c8b29d1dfde04dcbb3d5b (patch)
treeabccae3745d81252a2a2ff2bad626c114e2587fb /kexc25519c.c
parentc04e979503e97f52b750d3b98caa6fe004ab2ab9 (diff)
upstream commit
one more void *ctx => struct ssh *ssh conversion Upstream-ID: d299d043471c10214cf52c03daa10f1c232759e2
Diffstat (limited to 'kexc25519c.c')
-rw-r--r--kexc25519c.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/kexc25519c.c b/kexc25519c.c
index b7ef65dc3..e488013e9 100644
--- a/kexc25519c.c
+++ b/kexc25519c.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: kexc25519c.c,v 1.7 2015/01/26 06:10:03 djm Exp $ */ 1/* $OpenBSD: kexc25519c.c,v 1.8 2017/05/31 04:17:12 djm 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.
@@ -44,7 +44,7 @@
44#include "ssherr.h" 44#include "ssherr.h"
45 45
46static int 46static int
47input_kex_c25519_reply(int type, u_int32_t seq, void *ctxt); 47input_kex_c25519_reply(int type, u_int32_t seq, struct ssh *ssh);
48 48
49int 49int
50kexc25519_client(struct ssh *ssh) 50kexc25519_client(struct ssh *ssh)
@@ -69,9 +69,8 @@ kexc25519_client(struct ssh *ssh)
69} 69}
70 70
71static int 71static int
72input_kex_c25519_reply(int type, u_int32_t seq, void *ctxt) 72input_kex_c25519_reply(int type, u_int32_t seq, struct ssh *ssh)
73{ 73{
74 struct ssh *ssh = ctxt;
75 struct kex *kex = ssh->kex; 74 struct kex *kex = ssh->kex;
76 struct sshkey *server_host_key = NULL; 75 struct sshkey *server_host_key = NULL;
77 struct sshbuf *shared_secret = NULL; 76 struct sshbuf *shared_secret = NULL;