summaryrefslogtreecommitdiffstats
path: root/usr.bin/ssh/auth2-chall.c
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2017-05-30 14:18:15 +0000
committermarkus <markus@openbsd.org>2017-05-30 14:18:15 +0000
commitbd5af9a54a976077c2ffcd66cfc1bf7469b0321c (patch)
tree946c4dcaa2a5c6cf3a1733b9cc9574ae99ca8a06 /usr.bin/ssh/auth2-chall.c
parentremove unused wrapper functions from key.[ch]; ok djm@ (diff)
downloadwireguard-openbsd-bd5af9a54a976077c2ffcd66cfc1bf7469b0321c.tar.xz
wireguard-openbsd-bd5af9a54a976077c2ffcd66cfc1bf7469b0321c.zip
sshd: pass struct ssh to auth functions; ok djm@
Diffstat (limited to 'usr.bin/ssh/auth2-chall.c')
-rw-r--r--usr.bin/ssh/auth2-chall.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/ssh/auth2-chall.c b/usr.bin/ssh/auth2-chall.c
index 94beb26e8fb..ef3369f646a 100644
--- a/usr.bin/ssh/auth2-chall.c
+++ b/usr.bin/ssh/auth2-chall.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: auth2-chall.c,v 1.45 2017/05/30 08:49:58 markus Exp $ */
+/* $OpenBSD: auth2-chall.c,v 1.46 2017/05/30 14:18:15 markus Exp $ */
/*
* Copyright (c) 2001 Markus Friedl. All rights reserved.
* Copyright (c) 2001 Per Allansson. All rights reserved.
@@ -241,7 +241,8 @@ send_userauth_info_request(Authctxt *authctxt)
static int
input_userauth_info_response(int type, u_int32_t seq, void *ctxt)
{
- Authctxt *authctxt = ctxt;
+ struct ssh *ssh = ctxt;
+ Authctxt *authctxt = ssh->authctxt;
KbdintAuthctxt *kbdintctxt;
int authenticated = 0, res;
u_int i, nresp;