pike.git/
lib/
modules/
Sql.pmod/
pgsql_util.pmod
Branch:
Tag:
Non-build tags
All tags
No tags
2017-11-11
2017-11-11 15:20:39 by Stephen R. van den Berg <srb@cuci.nl>
c5a29685e1ef295dffbcd7f1724beba49c205865 (
15
lines) (+
15
/-
0
)
[
Show
|
Annotate
]
Branch:
8.1
pgsql: Postgresql 10 scram-SHA256 authentication support.
94:
return Regexp(ret->read()); }
+
private string cached_pass, cached_salt, cached_SaltedPassword;
+
private int cached_iters;
+
+
final string get_salted_password(string pass, string salt, int iters) {
+
return cached_pass == pass && cached_salt == salt && cached_iters == iters
+
&& cached_SaltedPassword;
+
}
+
+
final void set_salted_password(string pass, string salt, int iters,
+
string SaltedPassword) {
+
cached_pass = pass; cached_salt = salt; cached_iters = iters;
+
cached_SaltedPassword = SaltedPassword;
+
}
+
final void closestatement(bufcon|conxsess plugbuffer,string oldprep) { if(oldprep) { PD("Close statement %s\n",oldprep);