version 1.25, 2023/03/05 05:34:09 |
version 1.26, 2024/05/17 00:30:23 |
|
|
|
|
/* import */ |
/* import */ |
extern ServerOptions options; |
extern ServerOptions options; |
|
extern struct authmethod_cfg methodcfg_none; |
|
|
/* "none" is allowed only one time */ |
extern int none_enabled; |
static int none_enabled = 1; |
|
|
|
static int |
static int |
userauth_none(struct ssh *ssh, const char *method) |
userauth_none(struct ssh *ssh, const char *method) |
|
|
if ((r = sshpkt_get_end(ssh)) != 0) |
if ((r = sshpkt_get_end(ssh)) != 0) |
fatal_fr(r, "parse packet"); |
fatal_fr(r, "parse packet"); |
if (options.permit_empty_passwd && options.password_authentication) |
if (options.permit_empty_passwd && options.password_authentication) |
return (PRIVSEP(auth_password(ssh, ""))); |
return mm_auth_password(ssh, ""); |
return (0); |
return (0); |
} |
} |
|
|
Authmethod method_none = { |
Authmethod method_none = { |
"none", |
&methodcfg_none, |
NULL, |
|
userauth_none, |
userauth_none, |
&none_enabled |
|
}; |
}; |