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 98AA632C917 for ; Fri, 15 Oct 2004 04:35:30 +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 55233-04 for ; Fri, 15 Oct 2004 03:35:21 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id 1127732C913 for ; Fri, 15 Oct 2004 04:35:20 +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 1CIIrw-0003Sr-00; Fri, 15 Oct 2004 16:35:04 +1300 Message-ID: <416F4565.3040207@opencloud.com> Date: Fri, 15 Oct 2004 16:35:01 +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> <200410140224.56728.kenobi@halifax.rwth-aachen.de> <416DCBCB.5010908@opencloud.com> <200410150504.30514.kenobi@halifax.rwth-aachen.de> In-Reply-To: <200410150504.30514.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/158 X-Sequence-Number: 11263 Ulrich Meis wrote: > On Thursday 14 October 2004 02:43, Oliver Jowett wrote: > >>... >>Otherwise it looks fine. I wouldn't worry about the DataSource piece for >>the moment.. if you have the ability to pass args to the constructed >>class via a URL or properties file it is less of an issue. > > > How does that look like? > Since I found the same code in v2 and v3, I copied the new method as well. getSSLSocketFactory() doesn't need to be duplicated. Just pass the connection properties to makeSSL and construct the factory from there. Use of SSL-specific code needs to be conditionally compiled or the driver will not build if JSSE is not present. This is easy to do if you move getSSLSocketFactory() into Driver.java.in. This doesn't look right, what is '&urlServer&'? > + Object[] args = { info.getProperty("&urlServer&"), info.getProperty("sslfactoryargs") }; Otherwise, seems ok. -O