version 1.232, 2022/02/25 02:09:27 |
version 1.233, 2022/05/27 05:01:25 |
|
|
u_int type = 0; |
u_int type = 0; |
int r, allowed = 0; |
int r, allowed = 0; |
struct sshauthopt *opts = NULL; |
struct sshauthopt *opts = NULL; |
|
const char *remote_ip = ssh_remote_ipaddr(ssh); |
|
const char *remote_host = auth_get_canonical_hostname(ssh, |
|
options.use_dns); |
|
|
debug3_f("entering"); |
debug3_f("entering"); |
if ((r = sshbuf_get_u32(m, &type)) != 0 || |
if ((r = sshbuf_get_u32(m, &type)) != 0 || |
|
|
if (!key_base_type_match(auth_method, key, |
if (!key_base_type_match(auth_method, key, |
options.pubkey_accepted_algos)) |
options.pubkey_accepted_algos)) |
break; |
break; |
allowed = user_key_allowed(ssh, authctxt->pw, key, |
allowed = user_key_allowed(authctxt->pw, key, |
pubkey_auth_attempt, &opts); |
pubkey_auth_attempt, remote_ip, remote_host, &opts); |
break; |
break; |
case MM_HOSTKEY: |
case MM_HOSTKEY: |
auth_method = "hostbased"; |
auth_method = "hostbased"; |