diff options
author | Thomas Bushnell <thomas@gnu.org> | 1999-04-26 01:40:11 +0000 |
---|---|---|
committer | Thomas Bushnell <thomas@gnu.org> | 1999-04-26 01:40:11 +0000 |
commit | 6ac4feb602d86010c815100e2b02a8ec60d01929 (patch) | |
tree | a4ab86f29ebb7bc063dc3a205dac65cbf8c74dd7 /libshouldbeinlibc/ugids-verify-auth.c | |
parent | d4f6b14d4efded20df1eae0a2f027ff55b0fb5d2 (diff) | |
download | hurd-6ac4feb602d86010c815100e2b02a8ec60d01929.tar.gz hurd-6ac4feb602d86010c815100e2b02a8ec60d01929.tar.bz2 hurd-6ac4feb602d86010c815100e2b02a8ec60d01929.zip |
1998-12-21 Mark Kettenis <kettenis@phys.uva.nl>
* ugids-verify-auth.c: Include <hurd/password.h> again and remove
temporary definitions of password_check_user and
password_check_group.
1998-11-29 Mark Kettenis <kettenis@phys.uva.nl>
* idvec-verify.c (verify_passwd): Grant access when the password
in the passwd DB is empty.
(verify_id): Also call verify_fn when the password in the password
DB is empty.
Diffstat (limited to 'libshouldbeinlibc/ugids-verify-auth.c')
-rw-r--r-- | libshouldbeinlibc/ugids-verify-auth.c | 25 |
1 files changed, 4 insertions, 21 deletions
diff --git a/libshouldbeinlibc/ugids-verify-auth.c b/libshouldbeinlibc/ugids-verify-auth.c index 000e4126..91fa06e9 100644 --- a/libshouldbeinlibc/ugids-verify-auth.c +++ b/libshouldbeinlibc/ugids-verify-auth.c @@ -28,28 +28,10 @@ #include <grp.h> #include <hurd/paths.h> -/*#include <hurd/password.h>*/ /* XXX commented out until new libc installed */ +#include <hurd/password.h> #include "ugids.h" -/* XXXX these are dummies to use until libc gets re-installed. - The weak symbols should make the real libhurduser.so versions - get used as soon as they exist, even though we didn't #include - the header. When they are available in a working libc dist, - then this page can be removed and the #include above uncommented. */ -#pragma weak password_check_user -error_t -password_check_user (io_t a, uid_t b, const char *c, auth_t *d) -{ - return ENOSYS; -} -#pragma weak password_check_group -error_t -password_check_group (io_t a, uid_t b, const char *c, auth_t *d) -{ - return ENOSYS; -} - /* Accumulated information from authentication various passwords. */ struct svma_state { @@ -93,7 +75,7 @@ server_verify_make_auth (const char *password, error_t err = (*check) (svma_state->server, id, password, &auth); if (! err) - /* PASSWORD checked out ok; the corresponding authentication is in AUTH. */ + /* PASSWORD checked out ok; the corresponding authentication is in AUTH. */ { err = svma_state_add_auths (svma_state, &auth, 1); if (err) @@ -113,7 +95,8 @@ server_verify_make_auth (const char *password, for the idvec_verify function in <idvec.h>. */ error_t ugids_verify_make_auth (const struct ugids *ugids, - const struct idvec *have_uids, const struct idvec *have_gids, + const struct idvec *have_uids, + const struct idvec *have_gids, char *(*getpass_fn) (const char *prompt, uid_t id, int is_group, void *pwd_or_grp, void *hook), |