Re: BUG #17391: While using --with-ssl=openssl and PG_TEST_EXTRA='ssl' options, SSL tests fail on OpenBSD 7.0

Andres Freund <andres@anarazel.de>

From: Andres Freund <andres@anarazel.de>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Tom Lane <tgl@sss.pgh.pa.us>, Thomas Munro <thomas.munro@gmail.com>, byavuz81@gmail.com, PostgreSQL mailing lists <pgsql-bugs@lists.postgresql.org>, Heikki Linnakangas <heikki.linnakangas@iki.fi>, Michael Paquier <michael@paquier.xyz>
Date: 2022-02-05T20:47:14Z
Lists: pgsql-bugs
Hi,

On 2022-02-04 08:05:28 -0800, Andres Freund wrote:
> Have you checked whether openssl on openbsd doesn't have this problem? It
> could be an OS issue, rather than libressl.

FWIW, the ssl tests do pass with openssl, on openbsd 7.0, without any
patches. So it is a libressl related issue (although it can obviously be on
"our" side rather than "their" side).

Greetings,

Andres Freund



Commits

  1. Move libpq's write_failed mechanism down to pqsecure_raw_write().

  2. Fix thinko in PQisBusy().

  3. Set SNI ClientHello extension to localhost in tests

  4. Improve worst-case performance of text_position_get_match_pos()