This is a discussion on Re: Practical impediment to supporting multiple SSL libraries within the pgsql Hackers forums, part of the PostgreSQL category; --> > -----Original Message----- > From: Martijn van Oosterhout [mailto:kleptog@svana.org] > Sent: 12 April 2006 17:15 > To: Dave Page ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > -----Original Message----- > From: Martijn van Oosterhout [mailto:kleptog@svana.org] > Sent: 12 April 2006 17:15 > To: Dave Page > Cc: pgsql-hackers@postgresql.org > Subject: Re: [HACKERS] Practical impediment to supporting > multiple SSL libraries > > On Wed, Apr 12, 2006 at 05:03:32PM +0100, Dave Page wrote: > > <about the declaration of PQgetssl> > > The next version of psqlODBC (that has just gone into CVS tip after > > months of work and debate) uses it, and would break almost > completely > > should it be removed, therefore any backwards incompatible change > > should be avoided imho. And 2 or 4 could cause chaos for > Windows users > > if different DLL builds get mixed up. > > Hmm, may I ask what it uses it for? Just to get information, > or something more substantial? The driver implements all versions of the wire protocol itself, but if libpq is available at runtime (it will dynamically load it on platforms that support it) it can use it for connection setup so features like SSL can be provided easily. I'm still not overly familiar with how it works yet, but I'm sure Hiroshi (CC'd) can provide further details if you need them. Regards, Dave. ---------------------------(end of broadcast)--------------------------- TIP 3: Have you checked our extensive FAQ? http://www.postgresql.org/docs/faq |
| ||||
| On Wed, Apr 12, 2006 at 05:25:47PM +0100, Dave Page wrote: > The driver implements all versions of the wire protocol itself, but if > libpq is available at runtime (it will dynamically load it on platforms > that support it) it can use it for connection setup so features like SSL > can be provided easily. I'm still not overly familiar with how it works > yet, but I'm sure Hiroshi (CC'd) can provide further details if you need > them. Right, so what you're basically doing is setting up the connection via libpq then grabbing the SSL pointer and using that to continue communicating. If it's not SSL you use PQsocket get the socket and continue from there. Unorthodox usage, but it should work. Have a nice day, -- Martijn van Oosterhout <kleptog@svana.org> http://svana.org/kleptog/ > Patent. n. Genius is 5% inspiration and 95% perspiration. A patent is a > tool for doing 5% of the work and then sitting around waiting for someone > else to do the other 95% so you can sue them. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEPfZeIB7bNG8LQkwRAv0lAJ9voRA8lV8Jh+pVR95PVe n64aMW3ACdFgjF YOq5OcCs3w50gQWRqX66alE= =icjj -----END PGP SIGNATURE----- |
| Thread Tools | |
| Display Modes | |
|
|