Re: A solution to the SSL customizing problem - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: A solution to the SSL customizing problem
Date
Msg-id 4170289B.6060108@opencloud.com
Whole thread Raw
In response to Re: A solution to the SSL customizing problem  (Ulrich Meis <kenobi@halifax.rwth-aachen.de>)
Responses Re: A solution to the SSL customizing problem
List pgsql-jdbc
Ulrich Meis wrote:

> The attached changes provide as first parameter "hostname:port" to the factory
> as given in the Properties object, so I removed the &urlServer& thing.

The host and port are already given to the SSLSocketFactory when the
socket is created:

>   @SSL@       java.net.Socket newConnection = factory.createSocket(p_stream.getSocket(), p_stream.getHost(),
p_stream.getPort(),true); 

Why do we need to also pass them separately to the factory's ctor?

-O

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: copy to stdout/copy from stdin
Next
From: Oliver Jowett
Date:
Subject: Re: A solution to the SSL customizing problem