Deleted Added
full compact
35c35
< * $Id: pam_get_authtok.c 455 2011-10-29 18:31:11Z des $
---
> * $Id: pam_get_authtok.c 510 2011-12-31 13:14:23Z des $
52a53
> static const char authtok_prompt_remote[] = "Password for %u@%h:";
71a73
> const void *lhost, *rhost;
84a87,94
> r = pam_get_item(pamh, PAM_RHOST, &rhost);
> if (r == PAM_SUCCESS && rhost != NULL) {
> r = pam_get_item(pamh, PAM_HOST, &lhost);
> if (r == PAM_SUCCESS && lhost != NULL) {
> if (strcmp(rhost, lhost) != 0)
> default_prompt = authtok_prompt_remote;
> }
> }