--- libaitcfg/inc/aitpwd.h 2013/05/30 09:12:27 1.4 +++ libaitcfg/inc/aitpwd.h 2014/03/03 09:41:09 1.6 @@ -3,7 +3,7 @@ * by Michael Pounov * * $Author: misho $ -* $Id: aitpwd.h,v 1.4 2013/05/30 09:12:27 misho Exp $ +* $Id: aitpwd.h,v 1.6 2014/03/03 09:41:09 misho Exp $ * ************************************************************************** The ELWIX and AITNET software is distributed under the following @@ -12,7 +12,7 @@ terms: All of the documentation and software included in the ELWIX and AITNET Releases is copyrighted by ELWIX - Sofia/Bulgaria -Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013 +Copyright 2004 - 2014 by Michael Pounov . All rights reserved. Redistribution and use in source and binary forms, with or without @@ -122,10 +122,16 @@ typedef enum { ALL = -1, /* * cfgInitPasswd() - Init password root * - * @pwd = Password root - * return: -1 error or 0 ok + * return: NULL error or !=NULL allocated password root */ -int cfgInitPasswd(pwd_root_t * __restrict pwd); +pwd_root_t *cfgInitPasswd(); +/* + * cfgEndPasswd() - Free resources & password root + * + * @ppwd = Password root + * return: none + */ +void cfgEndPasswd(pwd_root_t **ppwd); /* * cfgLoadPasswd() - Load passwords from file *