Diff for /libaitcfg/inc/aitpwd.h between versions 1.3 and 1.7

version 1.3, 2013/01/17 13:27:39 version 1.7, 2022/09/26 19:46:59
Line 12  terms: Line 12  terms:
 All of the documentation and software included in the ELWIX and AITNET  All of the documentation and software included in the ELWIX and AITNET
 Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>  Releases is copyrighted by ELWIX - Sofia/Bulgaria <info@elwix.org>
   
Copyright 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012Copyright 2004 - 2022
         by Michael Pounov <misho@elwix.org>.  All rights reserved.          by Michael Pounov <misho@elwix.org>.  All rights reserved.
   
 Redistribution and use in source and binary forms, with or without  Redistribution and use in source and binary forms, with or without
Line 49  SUCH DAMAGE. Line 49  SUCH DAMAGE.
   
 #include <time.h>  #include <time.h>
 #include <sys/types.h>  #include <sys/types.h>
#include <aitio.h>#include <elwix.h>
   
   
 #define PWD_CRIT_NAME   0  #define PWD_CRIT_NAME   0
Line 69  struct tagAcctDB { Line 69  struct tagAcctDB {
         uint64_t        db_since;          uint64_t        db_since;
   
         int             db_h;           /* optional */          int             db_h;           /* optional */
} __packed;} __attribute__((packed));
   
 /* Search callback function, compare to match argument to record match ...   /* Search callback function, compare to match argument to record match ... 
  *  (return: -1 error, 0 not match or 1 match)   *  (return: -1 error, 0 not match or 1 match)
Line 122  typedef enum { ALL = -1,  Line 122  typedef enum { ALL = -1, 
 /*  /*
  * cfgInitPasswd() - Init password root   * cfgInitPasswd() - Init password root
  *   *
 * @pwd = Password root * return: NULL error or !=NULL allocated password root
 * return: -1 error or 0 ok 
  */   */
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   * cfgLoadPasswd() - Load passwords from file
  *   *
  * @pwdName = Passwords filename   * @pwdName = Passwords filename
Line 237  int cfg_setPasswd(pwd_root_t * __restrict pwd, passwd_ Line 243  int cfg_setPasswd(pwd_root_t * __restrict pwd, passwd_
  * @arg1 = Username | UID   * @arg1 = Username | UID
  * return: NULL item not found, !=NULL structure found   * return: NULL item not found, !=NULL structure found
  */   */
inline const struct tagUser *cfg_getPasswd(pwd_root_t * __restrict pwd, int criteria, ...);const struct tagUser *cfg_getPasswd(pwd_root_t * __restrict pwd, int criteria, ...);
   
   
 #endif  #endif

Removed from v.1.3  
changed lines
  Added in v.1.7


FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>