#include <metaproxy/package.hpp>
#include <boost/thread/mutex.hpp>
-#include <boost/algorithm/string.hpp>
#include <metaproxy/util.hpp>
#include "filter_auth_simple.hpp"
config_targetRegister(targetRegisterName);
}
+static void split_db(std::list<std::string> &dbs,
+ const char *databasesp)
+{
+ const char *cp;
+ while ((cp = strchr(databasesp, ',')))
+ {
+ dbs.push_back(std::string(databasesp, cp - databasesp));
+ databasesp = cp + 1;
+ }
+ dbs.push_back(std::string(databasesp));
+}
void mp::filter::AuthSimple::config_userRegister(std::string filename)
{
"no databases on line: '" + buf + ":" + passwdp + "'");
*databasesp++ = 0;
yf::AuthSimple::Rep::PasswordAndDBs tmp(passwdp);
- boost::split(tmp.dbs, databasesp, boost::is_any_of(","));
+ split_db(tmp.dbs, databasesp);
m_p->userRegister[buf] = tmp;
if (0)
"no targets on line: '" + buf + "'");
*targetsp++ = 0;
std::list<std::string> tmp;
- boost::split(tmp, targetsp, boost::is_any_of(","));
+ split_db(tmp, targetsp);
m_p->targetsByUser[buf] = tmp;
if (0) { // debugging