pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql_util.pmod
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1421:
final int warningsdropcount; // Number of uncollected warnings private int warningscollected; final int(0..1) invalidatecache; private Thread.Queue qportals; final mixed delayederror; private function (:void) readyforquery_cb; final string host; final int(0..65535) port; final string database, user, pass;
-
private Crypto.SCRAM SASLcontext;
+
private Crypto.
Hash.
SCRAM SASLcontext;
final Thread.Condition waitforauthready; final Thread.Mutex shortmux; final int readyforquerycount; private string _sprintf(int type) { string res; switch (type) { case 'O': res = sprintf(DRIVERNAME".proxy(%s@%s:%d/%s,%d,%d)", user, host, port, database, c && c->socket && c->socket->query_fd(),
pike.git/lib/modules/Sql.pmod/pgsql_util.pmod:1774:
case "SCRAM-SHA-256": k = 1; } #ifdef PG_DEBUG msglen -= sizeof(word) + 1; if (msglen < 1) break; #endif } if (k) {
-
SASLcontext = Crypto.SCRAM(
Crypto.SHA256
);
+
SASLcontext = Crypto.
SHA256.
SCRAM();
word = SASLcontext.client_1(); authresponse(({ "SCRAM-SHA-256", 0, sprintf("%4c", sizeof(word)), word })); } else errtype = PROTOCOLUNSUPPORTED; #ifdef PG_DEBUG if (msglen != 1) errtype = PROTOCOLERROR; msglen = 0;