1 |
/* Verify user passwords |
/* Verify user passwords |
2 |
|
|
3 |
Copyright (C) 1996,97,98,99 Free Software Foundation, Inc. |
Copyright (C) 1996,97,98,99,2002 Free Software Foundation, Inc. |
4 |
|
Written by Miles Bader <miles@gnu.org> |
|
Written by Miles Bader <miles@gnu.ai.mit.edu> |
|
5 |
|
|
6 |
This program is free software; you can redistribute it and/or |
This program is free software; you can redistribute it and/or |
7 |
modify it under the terms of the GNU General Public License as |
modify it under the terms of the GNU General Public License as |
53 |
void *pwd_or_grp, void *hook) |
void *pwd_or_grp, void *hook) |
54 |
{ |
{ |
55 |
const char *encrypted; |
const char *encrypted; |
56 |
int wheel_uid = (int)hook; |
int wheel_uid = (intptr_t)hook; |
57 |
const char *sys_encrypted; |
const char *sys_encrypted; |
58 |
|
|
59 |
if (! pwd_or_grp) |
if (! pwd_or_grp) |
173 |
if (! verify_fn) |
if (! verify_fn) |
174 |
{ |
{ |
175 |
verify_fn = verify_passwd; |
verify_fn = verify_passwd; |
176 |
verify_hook = (void *)wheel_uid; |
verify_hook = (void *)(intptr_t)wheel_uid; |
177 |
} |
} |
178 |
|
|
179 |
/* See if there are multiple ids in contention, in which case we should |
/* See if there are multiple ids in contention, in which case we should |