vBulletin Search Engine Optimization
| |||||||
| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| > -----Original Message----- > From: pgsql-hackers-owner@postgresql.org > [mailto > Martijn van Oosterhout > Sent: 12 April 2006 16:48 > To: pgsql-hackers@postgresql.org > Subject: [HACKERS] Practical impediment to supporting > multiple SSL libraries > > Just quickly going through what might be needed to support > multiple SSL libraries revealed one big problem in libpq-fe.h. > > #ifdef USE_SSL > /* Get the SSL structure associated with a connection */ > extern SSL *PQgetssl(PGconn *conn); #else extern void > *PQgetssl(PGconn *conn); #endif > > The return type of the function changes depending on whether > SSL is compiled in or not. > the underlying SSL library, which seems wrong. Now, options include: > > 1. Changing it to always return (void*), irrespective of SSL > 2. Creating a PGsslcontext type that varies depending on what > library you use (or not). > 3. Removing the function entirely because the only user > appears to be psql (in tree anyway). > 4. Only declare the function if the user has #included > openssl themselves. > > Or alternatively we could do nothing because: > > 5. It's not a problem > 6. It's a backward incompatable change 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. Regards, Dave. ---------------------------(end of broadcast)--------------------------- TIP 2: Don't 'kill -9' the postmaster |
| |||
| 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? Thanks in advance, -- 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) iD8DBQFEPSeNIB7bNG8LQkwRAmlHAKCSntflIWzfjk0bIrnO20 iFrR35pACcCiMF u87z9A4/ffAB28SQb4eJV5Y= =AOcb -----END PGP SIGNATURE----- |
| ||||
| Martijn van Oosterhout wrote: >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? > In case of SSL mode, the driver gets the communication path using PQsocket() or PQgetssl() after calling PQconnectdb(). The driver comunicates with the server by itself using the path. In case of non-SSL mode, the driver never calls libpq API at all. regards, Hiroshi Inoue ---------------------------(end of broadcast)--------------------------- TIP 6: explain analyze is your friend |
| Thread Tools | |
| Display Modes | |
|
|