X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 42BA932BDF9 for ; Fri, 15 Oct 2004 20:44:57 +0100 (BST) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 44574-03 for ; Fri, 15 Oct 2004 19:44:49 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 9E13732BDCC for ; Fri, 15 Oct 2004 20:44:47 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1CIY06-0006EL-00; Sat, 16 Oct 2004 08:44:30 +1300 Message-ID: <4170289B.6060108@opencloud.com> Date: Sat, 16 Oct 2004 08:44:27 +1300 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Ulrich Meis Cc: pgsql-jdbc@postgresql.org Subject: Re: A solution to the SSL customizing problem References: <200410111752.33375.kenobi@halifax.rwth-aachen.de> <200410150648.03220.kenobi@halifax.rwth-aachen.de> <416F5FE2.1040402@opencloud.com> <200410151621.49160.kenobi@halifax.rwth-aachen.de> In-Reply-To: <200410151621.49160.kenobi@halifax.rwth-aachen.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200410/167 X-Sequence-Number: 11272 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