Received: from localhost (maia-1.hub.org [200.46.204.191]) by postgresql.org (Postfix) with ESMTP id 7E7659FB4F0 for ; Mon, 4 Jun 2007 12:03:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.191]) (amavisd-maia, port 10024) with ESMTP id 17988-02-5 for ; Mon, 4 Jun 2007 12:03:01 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey-1.7.5 Received: from sd.tpf.co.jp (smtp.tpf.co.jp [210.161.239.34]) by postgresql.org (Postfix) with SMTP id 543A49FBCDE for ; Mon, 4 Jun 2007 12:03:00 -0300 (ADT) Received: (qmail 10153 invoked from network); 5 Jun 2007 00:02:58 +0900 X-Authentication: inoue was authenticated by dns.tpf.co.jp at 5 Jun 2007 00:02:58 +0900 Received: from unknown (HELO ?192.168.11.3?) (219.61.40.6) by dns.tpf.co.jp with SMTP; 5 Jun 2007 00:02:58 +0900 Message-ID: <466429A0.1040701@tpf.co.jp> Date: Tue, 05 Jun 2007 00:02:56 +0900 From: Hiroshi Inoue User-Agent: Thunderbird 2.0.0.0 (Windows/20070326) MIME-Version: 1.0 To: Rainer Bauer CC: pgsql-odbc@postgresql.org Subject: Re: [psqlODBC 08.02.0402] OpenSSL libraries References: <452863p8rdgtgmsbshlr1rqrv9m4444dci@4ax.com> In-Reply-To: <452863p8rdgtgmsbshlr1rqrv9m4444dci@4ax.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200706/11 X-Sequence-Number: 9000 Rainer Bauer wrote: > Hi, > > I checked out the latest head version today 08.02.0402 to find a solution for > the new OpenSSL DLL naming scheme. Do you get OpenSSL libraries from http://www.slproweb.com/products/Win32OpenSSL.html ? Though I can find ssleay32(MT]MD)(d).lib in C:\OpenSSL\lib\vc, I can't find ssleay32(MT|MD)(d).dll. What's the differnce among ssleay32xx.lib ? > I wanted to produce a patch for loadlib.c based on the following idea: > > 1) Include openssl/opensslv.h > 2) Based on the version number OPENSSL_VERSION_NUMBER defined in that file > either link with ssleay32.lib or ssleay32MT.lib (respectively libeay32.lib or > libeay32MT.lib). > > But I stopped doing this, because ... > 1) according to the OpenSSL FAQ, the DLL naming scheme was changed for version > 0.9.8: > 2) the OpenSSL DLLs installed by the MSI installer are versions 0.9.8.4. > > Hence somebody must have renamed the DLLs before they were added to the > installer. > > So what we can do is either stick with the old names and manually > copying/renaming them or switch completely to the new names. The former > requires renaming the DLLs in order to build the project (which should be > documented in ~/docs/win32-compilation.html), the latter requires altering the > MSI installer (are there any pitfalls doing that?). > > Rainer > > PS: Can someone shed some light why delay loading is used in loadlib.c? Because the driver can live without libpq, ssleay32 or pgenlist. If you use SSL connections, libpq and ssleay32 are loaded dynamically. If you enlist in MSDTC, pgenlist(a) is loaeded dynamically.