// Copyright (c) 2000-2005 David Muse // See the file COPYING for more information #include #include #include authenticator::authenticator(sqlrconfigfile *cfgfile) { // get the list of users from the config file linkedlist< usercontainer * > *userlist=cfgfile->getUserList(); usercount=userlist->getLength(); // create an array of users and passwords and store the // users and passwords from the config file in them users=new char *[usercount]; passwords=new char *[usercount]; usernode *current=userlist->getNodeByIndex(0); for (uint32_t i=0; i getData()->getUser()); passwords[i]=charstring::duplicate(current-> getData()->getPassword()); current=current->getNext(); } } authenticator::~authenticator() { for (uint32_t i=0; i