--- libaitcfg/inc/aitpwd.h 2012/09/19 12:04:44 1.1.2.8 +++ libaitcfg/inc/aitpwd.h 2012/09/19 12:35:10 1.1.2.9 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitpwd.h,v 1.1.2.8 2012/09/19 12:04:44 misho Exp $ +* $Id: aitpwd.h,v 1.1.2.9 2012/09/19 12:35:10 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -214,6 +214,7 @@ int cfg_unsetPasswd(pwd_root_t * __restrict pwd, int c * cfg_setPasswd() - Set item in password or adding new item if not exists * * @cfg = Password root + * @fields = Meaning continuous field * @csName = Username * @csPass = Password * @uid = UID @@ -226,7 +227,8 @@ int cfg_unsetPasswd(pwd_root_t * __restrict pwd, int c * @csShell = Shell * return: 0 nothing changed, -1 error, 1 found and updated item or 2 added new item */ -int cfg_setPasswd(pwd_root_t * __restrict pwd, const char *csName, const char *csPass, +int cfg_setPasswd(pwd_root_t * __restrict pwd, unsigned char fields, + const char *csName, const char *csPass, unsigned int uid, unsigned int gid, const char *csClass, unsigned int change, unsigned int expire, const char *csRealm, const char *csHome, const char *csShell);