diff options
author | des <des@FreeBSD.org> | 2002-05-08 00:54:29 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2002-05-08 00:54:29 +0000 |
commit | abc14dea1178ab9607fbe8c7db9f378ea30c6300 (patch) | |
tree | f9c07c171e36b0d81df99eba09235047c8f8015b /usr.bin/chpass/chpass.h | |
parent | dc404ea6201642310fe29bb82b886972d3bae7d6 (diff) | |
download | FreeBSD-src-abc14dea1178ab9607fbe8c7db9f378ea30c6300.zip FreeBSD-src-abc14dea1178ab9607fbe8c7db9f378ea30c6300.tar.gz |
Use libutil and libypclnt for all passwd manipulation and NIS needs.
Sponsored by: DARPA, NAI Labs
Diffstat (limited to 'usr.bin/chpass/chpass.h')
-rw-r--r-- | usr.bin/chpass/chpass.h | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/usr.bin/chpass/chpass.h b/usr.bin/chpass/chpass.h index ef0c708..b78b85e 100644 --- a/usr.bin/chpass/chpass.h +++ b/usr.bin/chpass/chpass.h @@ -1,6 +1,13 @@ /* * Copyright (c) 1988, 1993, 1994 * The Regents of the University of California. All rights reserved. + * Copyright (c) 2002 Networks Associates Technology, Inc. + * All rights reserved. + * + * Portions of this software were developed for the FreeBSD Project by + * ThinkSec AS and NAI Labs, the Security Research Division of Network + * Associates, Inc. under DARPA/SPAWAR contract N66001-01-C-8035 + * ("CBOSS"), as part of the DARPA CHATS research program. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions @@ -39,7 +46,8 @@ struct passwd; typedef struct _entry { const char *prompt; int (*func)(char *, struct passwd *, struct _entry *); - int restricted, len; + int restricted; + size_t len; char *except, *save; } ENTRY; @@ -52,11 +60,10 @@ typedef struct _entry { #define E_SHELL 13 extern ENTRY list[]; -extern uid_t uid; +extern int master_mode; int atot(char *, time_t *); -void display(int, struct passwd *); -void edit(struct passwd *); +struct passwd *edit(const char *, struct passwd *); char *ok_shell(char *); int p_change(char *, struct passwd *, ENTRY *); int p_class(char *, struct passwd *, ENTRY *); @@ -70,4 +77,3 @@ int p_passwd(char *, struct passwd *, ENTRY *); int p_shell(char *, struct passwd *, ENTRY *); int p_uid(char *, struct passwd *, ENTRY *); char *ttoa(time_t); -int verify(struct passwd *); |