pike.git / lib / modules / Sql.pmod / pgsql_util.pmod

version» Context lines:

pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:87:    foreach(expr;;int c)    if(c>='A'&&c<='Z')    ret->add('[',c,c+'a'-'A',']');    else if(c=='\a') // Replace with generic whitespace    ret->add("[ \t\f\r\n]");    else    ret->add_int8(c);    return Regexp(ret->read());   }    - private Thread.Mutex cachemutex = Thread.Mutex(); - private string cached_pass, cached_salt, cached_SaltedPassword; - private int cached_iters; -  - final string get_salted_password(string pass, string salt, int iters) { -  Thread.MutexKey lock = cachemutex->lock(); -  string ret = cached_pass == pass && cached_salt == salt -  && cached_iters == iters && cached_SaltedPassword; -  lock = 0; -  return ret; - } -  - final void set_salted_password(string pass, string salt, int iters, -  string SaltedPassword) { -  Thread.MutexKey lock = cachemutex->lock(); -  cached_pass = pass; cached_salt = salt; cached_iters = iters; -  cached_SaltedPassword = SaltedPassword; -  lock = 0; - } -  +    final void closestatement(bufcon|conxsess plugbuffer,string oldprep) {    if(oldprep) {    PD("Close statement %s\n",oldprep);    CHAIN(plugbuffer)->add_int8('C')->add_hstring(({'S', oldprep, 0}), 4, 4);    }   }      private void run_local_backend() {    Thread.MutexKey lock;    int looponce;