diff options
author | ru <ru@FreeBSD.org> | 2002-04-08 10:58:01 +0000 |
---|---|---|
committer | ru <ru@FreeBSD.org> | 2002-04-08 10:58:01 +0000 |
commit | 655eb3fb4f1633dec19cc1fae84cdbbefd47b2cf (patch) | |
tree | 78d0c6718fa4638de111b21924ca4d30b2a80867 /release/picobsd/tinyware/login | |
parent | 3ca5a4b299c3140f8a993225944468ca887d4b9a (diff) | |
download | FreeBSD-src-655eb3fb4f1633dec19cc1fae84cdbbefd47b2cf.zip FreeBSD-src-655eb3fb4f1633dec19cc1fae84cdbbefd47b2cf.tar.gz |
Synch with login/login.c,v 1.81: Switch to OpenPAM.
Diffstat (limited to 'release/picobsd/tinyware/login')
-rw-r--r-- | release/picobsd/tinyware/login/pico-login.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/release/picobsd/tinyware/login/pico-login.c b/release/picobsd/tinyware/login/pico-login.c index c3f39df..cbfd603 100644 --- a/release/picobsd/tinyware/login/pico-login.c +++ b/release/picobsd/tinyware/login/pico-login.c @@ -80,7 +80,7 @@ static const char rcsid[] = #ifdef USE_PAM #include <security/pam_appl.h> -#include <security/pam_misc.h> +#include <security/openpam.h> #include <sys/wait.h> #endif /* USE_PAM */ @@ -643,7 +643,7 @@ main(argc, argv) PAM_END; exit(0); } else { - if ((e = pam_end(pamh, PAM_DATA_SILENT)) != PAM_SUCCESS) + if ((e = pam_end(pamh, 0)) != PAM_SUCCESS) syslog(LOG_ERR, "pam_end: %s", pam_strerror(pamh, e)); } @@ -768,7 +768,7 @@ auth_pam() const void *item; int rval; int e; - static struct pam_conv conv = { misc_conv, NULL }; + static struct pam_conv conv = { openpam_ttyconv, NULL }; if ((e = pam_start("login", username, &conv, &pamh)) != PAM_SUCCESS) { syslog(LOG_ERR, "pam_start: %s", pam_strerror(pamh, e)); |