--- libaitcfg/inc/aitpwd.h 2012/09/19 13:02:58 1.1.2.10 +++ libaitcfg/inc/aitpwd.h 2013/01/17 13:27:39 1.3 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitpwd.h,v 1.1.2.10 2012/09/19 13:02:58 misho Exp $ +* $Id: aitpwd.h,v 1.3 2013/01/17 13:27:39 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -188,9 +188,10 @@ int cfgConcatPasswd(pwd_root_t * __restrict pwd, pwd_r * @pwd = Password root * @csName = Username * @csPass = Password - * return: -1 error, 1 deny or 0 allow + * return: =NULL deny or !=NULL allow */ -int cfgAuthPasswd(pwd_root_t * __restrict pwd, const char *csName, const char *csPass); +const struct tagUser *cfgAuthPasswd(pwd_root_t * __restrict pwd, + const char *csName, const char *csPass); /* * cfg_findPasswdBy() - Find user by criteria position in list @@ -214,7 +215,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 + * @fields = Following parameters are continuous to certain field * @csName = Username * @arg1 = Password * @arg2 = UID @@ -227,7 +228,7 @@ int cfg_unsetPasswd(pwd_root_t * __restrict pwd, int c * @arg9 = 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, u_char fields, const char *csName, ...); +int cfg_setPasswd(pwd_root_t * __restrict pwd, passwd_attr_t fields, const char *csName, ...); /* * cfg_getPasswd() - Get item from passwords and return structure from it *