version 1.2, 2002/05/31 11:35:15 |
version 1.3, 2003/04/08 20:21:28 |
|
|
pktype = key_type_from_name(pkalg); |
pktype = key_type_from_name(pkalg); |
if (pktype == KEY_UNSPEC) { |
if (pktype == KEY_UNSPEC) { |
/* this is perfectly legal */ |
/* this is perfectly legal */ |
log("userauth_hostbased: unsupported " |
logit("userauth_hostbased: unsupported " |
"public key algorithm: %s", pkalg); |
"public key algorithm: %s", pkalg); |
goto done; |
goto done; |
} |
} |
|
|
chost[len - 1] = '\0'; |
chost[len - 1] = '\0'; |
} |
} |
if (strcasecmp(resolvedname, chost) != 0) |
if (strcasecmp(resolvedname, chost) != 0) |
log("userauth_hostbased mismatch: " |
logit("userauth_hostbased mismatch: " |
"client sends %s, but we resolve %s to %s", |
"client sends %s, but we resolve %s to %s", |
chost, ipaddr, resolvedname); |
chost, ipaddr, resolvedname); |
if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) |
if (auth_rhosts2(pw, cuser, resolvedname, ipaddr) == 0) |