Re: SSL connection check - Mailing list pgsql-odbc

From 井上博史
Subject Re: SSL connection check
Date
Msg-id CAFGcedUzsQ3kzLKJn6dSQkMwgHQtCDODC5Sh2L-RB+YJcc39kA@mail.gmail.com
Whole thread Raw
In response to SSL connection check  (Daniel Gustafsson <daniel@yesql.se>)
List pgsql-odbc
Hi Daniel,

I would take care of the patch.

Thanks.
Hiroshi Inoue

ウイルス フリー。 www.avg.com

2021年2月17日(水) 19:38 Daniel Gustafsson <daniel@yesql.se>:
PgDtc_is_recovery_available use PQgetssl() to check if SSL was used for the
connection.  PQgetssl() is discouraged since it is hardcoded to the OpenSSL
implementation and may fail to identify an SSL connection in case another TLS
backend is added to postgres (a few alternatives have already been discussed on
-hackers).

The attached changes to use PQsslInUse() to perform the check, and removes a
comment which seemed out of place with this (unless I totally misunderstood
it).  PQsslInUse has been available since 9.5, to cope with older libpq
versions, an autoconf check is added for falling back on PQgetssl in 9.4
through to 9.2.

--
Daniel Gustafsson               https://vmware.com/

pgsql-odbc by date:

Previous
From: Daniel Gustafsson
Date:
Subject: SSL connection check
Next
From: Michael Paquier
Date:
Subject: Re: PostgreSQLとpsqlodbcドライバーの互換性について