version 1.62.4.1, 2006/09/30 04:06:50 |
version 1.63, 2006/03/19 18:51:18 |
|
|
/* $OpenBSD$ */ |
|
/* |
/* |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland |
* All rights reserved |
* All rights reserved |
|
|
* called by a name other than "ssh" or "Secure Shell". |
* called by a name other than "ssh" or "Secure Shell". |
*/ |
*/ |
|
|
#include <sys/types.h> |
#include "includes.h" |
|
|
#include <stdio.h> |
|
#include <string.h> |
|
#include <unistd.h> |
|
#include <pwd.h> |
|
|
|
#include "xmalloc.h" |
#include "xmalloc.h" |
#include "rsa.h" |
#include "rsa.h" |
#include "ssh1.h" |
#include "ssh1.h" |
|
|
#include "log.h" |
#include "log.h" |
#include "servconf.h" |
#include "servconf.h" |
#include "compat.h" |
#include "compat.h" |
#include "key.h" |
|
#include "hostfile.h" |
|
#include "auth.h" |
#include "auth.h" |
#include "channels.h" |
#include "channels.h" |
#include "session.h" |
#include "session.h" |
#include "uidswap.h" |
#include "uidswap.h" |
#ifdef GSSAPI |
|
#include "ssh-gss.h" |
|
#endif |
|
#include "monitor_wrap.h" |
#include "monitor_wrap.h" |
|
|
/* import */ |
/* import */ |
|
|
{ |
{ |
int i; |
int i; |
|
|
for (i = 0; auth1_methods[i].name != NULL; i++) |
for(i = 0; auth1_methods[i].name != NULL; i++) |
if (auth1_methods[i].type == type) |
if (auth1_methods[i].type == type) |
return (&(auth1_methods[i])); |
return (&(auth1_methods[i])); |
|
|
|
|
return (buf); |
return (buf); |
} |
} |
|
|
/*ARGSUSED*/ |
|
static int |
static int |
auth1_process_password(Authctxt *authctxt, char *info, size_t infolen) |
auth1_process_password(Authctxt *authctxt, char *info, size_t infolen) |
{ |
{ |
|
|
return (authenticated); |
return (authenticated); |
} |
} |
|
|
/*ARGSUSED*/ |
|
static int |
static int |
auth1_process_rsa(Authctxt *authctxt, char *info, size_t infolen) |
auth1_process_rsa(Authctxt *authctxt, char *info, size_t infolen) |
{ |
{ |
|
|
return (authenticated); |
return (authenticated); |
} |
} |
|
|
/*ARGSUSED*/ |
|
static int |
static int |
auth1_process_rhosts_rsa(Authctxt *authctxt, char *info, size_t infolen) |
auth1_process_rhosts_rsa(Authctxt *authctxt, char *info, size_t infolen) |
{ |
{ |
|
|
return (authenticated); |
return (authenticated); |
} |
} |
|
|
/*ARGSUSED*/ |
|
static int |
static int |
auth1_process_tis_challenge(Authctxt *authctxt, char *info, size_t infolen) |
auth1_process_tis_challenge(Authctxt *authctxt, char *info, size_t infolen) |
{ |
{ |
|
|
return (-1); |
return (-1); |
} |
} |
|
|
/*ARGSUSED*/ |
|
static int |
static int |
auth1_process_tis_response(Authctxt *authctxt, char *info, size_t infolen) |
auth1_process_tis_response(Authctxt *authctxt, char *info, size_t infolen) |
{ |
{ |