summaryrefslogtreecommitdiff
path: root/auth2-chall.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2001-06-25 05:01:22 +0000
committerBen Lindstrom <mouring@eviladmin.org>2001-06-25 05:01:22 +0000
commitbba81213b972ce15fbbaca60b9ffabb42371ce8f (patch)
treee6bd40752969f2b93d179cfb9aaae9074ca45956 /auth2-chall.c
parent34f91883a6f3123656b0a8017d68b658f7cf2403 (diff)
- itojun@cvs.openbsd.org 2001/06/23 15:12:20
[auth1.c auth2.c auth2-chall.c authfd.c authfile.c auth-rhosts.c canohost.c channels.c cipher.c clientloop.c deattack.c dh.c hostfile.c kex.c kexdh.c kexgex.c key.c nchan.c packet.c radix.c readpass.c scp.c servconf.c serverloop.c session.c sftp.c sftp-client.c sftp-glob.c sftp-int.c sftp-server.c ssh-add.c ssh-agent.c ssh.c sshconnect1.c sshconnect2.c sshconnect.c sshd.c ssh-keygen.c ssh-keyscan.c] more strict prototypes. raise warning level in Makefile.inc. markus ok'ed TODO; cleanup headers
Diffstat (limited to 'auth2-chall.c')
-rw-r--r--auth2-chall.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/auth2-chall.c b/auth2-chall.c
index be741010e..5afd7d769 100644
--- a/auth2-chall.c
+++ b/auth2-chall.c
@@ -23,7 +23,7 @@
23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 23 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
24 */ 24 */
25#include "includes.h" 25#include "includes.h"
26RCSID("$OpenBSD: auth2-chall.c,v 1.6 2001/06/03 20:06:11 markus Exp $"); 26RCSID("$OpenBSD: auth2-chall.c,v 1.7 2001/06/23 15:12:17 itojun Exp $");
27 27
28#include "ssh2.h" 28#include "ssh2.h"
29#include "auth.h" 29#include "auth.h"
@@ -33,9 +33,9 @@ RCSID("$OpenBSD: auth2-chall.c,v 1.6 2001/06/03 20:06:11 markus Exp $");
33#include "auth.h" 33#include "auth.h"
34#include "log.h" 34#include "log.h"
35 35
36static int auth2_challenge_start(Authctxt *authctxt); 36static int auth2_challenge_start(Authctxt *);
37static int send_userauth_info_request(Authctxt *authctxt); 37static int send_userauth_info_request(Authctxt *);
38static void input_userauth_info_response(int type, int plen, void *ctxt); 38static void input_userauth_info_response(int, int, void *);
39 39
40#ifdef BSD_AUTH 40#ifdef BSD_AUTH
41extern KbdintDevice bsdauth_device; 41extern KbdintDevice bsdauth_device;
@@ -64,7 +64,7 @@ struct KbdintAuthctxt
64 KbdintDevice *device; 64 KbdintDevice *device;
65}; 65};
66 66
67KbdintAuthctxt * 67static KbdintAuthctxt *
68kbdint_alloc(const char *devs) 68kbdint_alloc(const char *devs)
69{ 69{
70 KbdintAuthctxt *kbdintctxt; 70 KbdintAuthctxt *kbdintctxt;
@@ -89,7 +89,7 @@ kbdint_alloc(const char *devs)
89 89
90 return kbdintctxt; 90 return kbdintctxt;
91} 91}
92void 92static void
93kbdint_reset_device(KbdintAuthctxt *kbdintctxt) 93kbdint_reset_device(KbdintAuthctxt *kbdintctxt)
94{ 94{
95 if (kbdintctxt->ctxt) { 95 if (kbdintctxt->ctxt) {
@@ -98,7 +98,7 @@ kbdint_reset_device(KbdintAuthctxt *kbdintctxt)
98 } 98 }
99 kbdintctxt->device = NULL; 99 kbdintctxt->device = NULL;
100} 100}
101void 101static void
102kbdint_free(KbdintAuthctxt *kbdintctxt) 102kbdint_free(KbdintAuthctxt *kbdintctxt)
103{ 103{
104 if (kbdintctxt->device) 104 if (kbdintctxt->device)
@@ -110,7 +110,7 @@ kbdint_free(KbdintAuthctxt *kbdintctxt)
110 xfree(kbdintctxt); 110 xfree(kbdintctxt);
111} 111}
112/* get next device */ 112/* get next device */
113int 113static int
114kbdint_next_device(KbdintAuthctxt *kbdintctxt) 114kbdint_next_device(KbdintAuthctxt *kbdintctxt)
115{ 115{
116 size_t len; 116 size_t len;