SSL connection check

From: Daniel Gustafsson <daniel(at)yesql(dot)se>
To: pgsql-odbc(at)postgresql(dot)org
Subject: SSL connection check
Date: 2021-02-17 10:38:45
Message-ID: 0A5ECAFA-DDF5-4B82-9A90-83F948EADC80@yesql.se
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-odbc

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/

Attachment Content-Type Size
pqgetssl.patch application/octet-stream 1.5 KB

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message 井上博史 2021-02-18 03:27:26 Re: SSL connection check
Previous Message oki.ichikawa@ctc-g.co.jp 2021-02-17 06:51:58 RE: PostgreSQLとpsqlodbcドライバーの互換性について