/[hurd]/hurd/libshouldbeinlibc/idvec-verify.c
ViewVC logotype

Diff of /hurd/libshouldbeinlibc/idvec-verify.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.7 by roland, Mon May 24 02:39:20 1999 UTC revision 1.8 by roland, Wed May 8 09:24:09 2002 UTC
# Line 1  Line 1 
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
# Line 54  verify_passwd (const char *password, Line 53  verify_passwd (const char *password,
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)
# Line 174  idvec_verify (const struct idvec *uids, Line 173  idvec_verify (const struct idvec *uids,
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

Legend:
Removed from v.1.7  
changed lines
  Added in v.1.8

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26