Main Page | Namespace List | Class List | Directories | File List | Class Members | File Members

auth2-kbdint.c File Reference

#include "includes.h"
#include "packet.h"
#include "auth.h"
#include "log.h"
#include "servconf.h"
#include "xmalloc.h"

Go to the source code of this file.

Functions

 RCSID ("$OpenBSD: auth2-kbdint.c,v 1.2 2002/05/31 11:35:15 markus Exp $")
static int userauth_kbdint (Authctxt *authctxt)

Variables

ServerOptions options
Authmethod method_kbdint


Function Documentation

RCSID "$OpenBSD: auth2-kbdint.  c,
v 1.2 2002/05/31 11:35:15 markus Exp $" 
 

static int userauth_kbdint Authctxt authctxt  )  [static]
 

Definition at line 38 of file auth2-kbdint.c.

References auth2_challenge(), ServerOptions::challenge_response_authentication, debug(), packet_check_eom, packet_get_string(), Authctxt::pw, and xfree().

00039 {
00040         int authenticated = 0;
00041         char *lang, *devs;
00042 
00043         lang = packet_get_string(NULL);
00044         devs = packet_get_string(NULL);
00045         packet_check_eom();
00046 
00047         debug("keyboard-interactive devs %s", devs);
00048 
00049         if (options.challenge_response_authentication)
00050                 authenticated = auth2_challenge(authctxt, devs);
00051 
00052         xfree(devs);
00053         xfree(lang);
00054 #ifdef HAVE_CYGWIN
00055         if (check_nt_auth(0, authctxt->pw) == 0)
00056                 authenticated = 0;
00057 #endif
00058         return authenticated;
00059 }


Variable Documentation

Authmethod method_kbdint
 

Initial value:

Definition at line 61 of file auth2-kbdint.c.

ServerOptions options
 

Definition at line 110 of file ssh.c.


© sourcejam.com 2005-2008