From: | Jacob Champion <pchampion(at)vmware(dot)com> |
---|---|
To: | "daniel(at)yesql(dot)se" <daniel(at)yesql(dot)se> |
Cc: | "pgsql-hackers(at)lists(dot)postgresql(dot)org" <pgsql-hackers(at)lists(dot)postgresql(dot)org>, "hlinnaka(at)iki(dot)fi" <hlinnaka(at)iki(dot)fi>, "andrew(dot)dunstan(at)2ndquadrant(dot)com" <andrew(dot)dunstan(at)2ndquadrant(dot)com>, "andres(at)anarazel(dot)de" <andres(at)anarazel(dot)de>, "thomas(dot)munro(at)gmail(dot)com" <thomas(dot)munro(at)gmail(dot)com>, "sfrost(at)snowman(dot)net" <sfrost(at)snowman(dot)net>, "michael(at)paquier(dot)xyz" <michael(at)paquier(dot)xyz> |
Subject: | Re: Support for NSS as a libpq TLS backend |
Date: | 2021-08-18 00:06:59 |
Message-ID: | a1798e46d6d801344ebc93672c6947ef5297c8a0.camel@vmware.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-hackers |
On Tue, 2021-08-10 at 19:22 +0200, Daniel Gustafsson wrote:
> Another rebase to work around the recent changes in the ssl Makefile.
I have a local test suite that I've been writing against libpq. With
the new ssldatabase connection option, one tricky aspect is figuring
out whether it's supported or not. It doesn't look like there's any way
to tell, from a client application, whether NSS or OpenSSL (or neither)
is in use.
You'd mentioned that perhaps we should support a call like
PQsslAttribute(NULL, "library"); /* returns "NSS", "OpenSSL", or NULL */
so that you don't have to have an actual connection first in order to
figure out what connection options you need to supply. Clients that
support multiple libpq versions would need to know whether that call is
reliable (older versions of libpq will always return NULL, whether SSL
is compiled in or not), so maybe we could add a feature macro at the
same time?
We could also add a new API (say, PQsslLibrary()) but I don't know if
that gives us anything in practice. Thoughts?
--Jacob
From | Date | Subject | |
---|---|---|---|
Next Message | Michael Paquier | 2021-08-18 00:10:16 | Re: PG14: Avoid checking output-buffer-length for every encoded byte during pg_hex_encode |
Previous Message | alvherre@alvh.no-ip.org | 2021-08-17 22:32:08 | Re: archive status ".ready" files may be created too early |