pike.git
/
lib
/
modules
/
Sql.pmod
/
pgsql.pike
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/lib/modules/Sql.pmod/pgsql.pike:334:
object fcon; #if constant(SSL.sslfile) if(!nossl && (options->use_ssl || options->force_ssl)) { PD("SSLRequest\n"); { object c=.pgsql_util.PGassist(); lcon.write(({c.plugint32(8),c.plugint32(PG_PROTOCOL(1234,5679))})); } switch(lcon.read(1)) { case "S":
-
SSL.
context
context = SSL.
context
();
+
SSL.
Context
context = SSL.
Context
();
context->random = Crypto.Random.random_string; fcon=.pgsql_util.PGconnS(lcon, context); if(fcon) return fcon; default:lcon.close(); if(!lcon.connect(host,port)) return UNDEFINED; case "N": if(options->force_ssl) ERROR("Encryption not supported on connection to %s:%d\n",