version 1.1, 2002/05/25 18:51:07 |
version 1.2, 2002/05/31 11:35:15 |
|
|
/* import */ |
/* import */ |
extern ServerOptions options; |
extern ServerOptions options; |
|
|
|
/* "none" is allowed only one time */ |
|
static int none_enabled = 1; |
|
|
char * |
char * |
auth2_read_banner(void) |
auth2_read_banner(void) |
{ |
{ |
|
|
return; |
return; |
} |
} |
|
|
int |
static int |
userauth_none(Authctxt *authctxt) |
userauth_none(Authctxt *authctxt) |
{ |
{ |
static int called = 0; |
none_enabled = 0; |
|
|
if (called) |
|
return (0); |
|
called = 1; |
|
packet_check_eom(); |
packet_check_eom(); |
userauth_banner(); |
userauth_banner(); |
return (authctxt->valid ? PRIVSEP(auth_password(authctxt, "")) : 0); |
return (authctxt->valid ? PRIVSEP(auth_password(authctxt, "")) : 0); |
} |
} |
|
|
|
Authmethod method_none = { |
|
"none", |
|
userauth_none, |
|
&none_enabled |
|
}; |