From: | Martijn van Oosterhout <kleptog(at)svana(dot)org> |
---|---|
To: | Bruce Momjian <bruce(at)momjian(dot)us> |
Cc: | Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, Andrew Dunstan <andrew(at)dunslane(dot)net>, "Joshua D(dot) Drake" <jd(at)commandprompt(dot)com>, Greg Stark <gsstark(at)mit(dot)edu>, Greg Smith <greg(at)2ndquadrant(dot)com>, Robert Haas <robertmhaas(at)gmail(dot)com>, Alvaro Herrera <alvherre(at)commandprompt(dot)com>, Michael Banck <mbanck(at)debian(dot)org>, pgsql-hackers <pgsql-hackers(at)postgresql(dot)org> |
Subject: | Re: Debian readline/libedit breakage |
Date: | 2011-02-19 18:42:20 |
Message-ID: | 20110219184219.GA5134@svana.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Fri, Feb 18, 2011 at 02:35:42PM -0500, Bruce Momjian wrote:
> > /* Get the OpenSSL structure associated with a connection. Returns NULL for
> > * unencrypted connections or if any other TLS library is in use. */
> > extern void *PQgetssl(PGconn *conn);
> >
> > We are under no compulsion to emulate OpenSSL if we switch to another
> > library. The design intent is that we'd provide a separate function
> > (PQgetnss?) and callers that know how to use that library would call
> > that function. If they don't, it's not our problem.
>
> Who uses this? ODBC?
There's a few users, that I can find anyway. psql is one. It uses this
to get information about the connection, pgadmin does it also for a
similar reasons I guess.
Adding a seperate function for each SSL library seems odd. It would
mean that psql would need the headers to every possible SSL library
because it (in theory) doesn't know which library might be used at
runtime.
ODBC uses it as well. It really uses it for communication. As far as
Google Code Search can it's the only one that does.
But if the intention is to do it by adding new functions, we can and
let the ODBC guys sort it out (ERROR: Using incompatable SSL
connection).
Have a nice day,
--
Martijn van Oosterhout <kleptog(at)svana(dot)org> http://svana.org/kleptog/
> Patriotism is when love of your own people comes first; nationalism,
> when hate for people other than your own comes first.
> - Charles de Gaulle
From | Date | Subject | |
---|---|---|---|
Next Message | Martijn van Oosterhout | 2011-02-19 18:54:53 | Re: Debian readline/libedit breakage |
Previous Message | Magnus Hagander | 2011-02-19 15:21:06 | Re: pg_basebackup and wal streaming |