pike.git/lib/modules/Sql.pmod/pgsql.pike:335: Inside #if constant(SSL.sslfile)
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();
- 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",
host,port);