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

Tom Lane <tgl@sss.pgh.pa.us>

From: Tom Lane <tgl@sss.pgh.pa.us>
To: Daniel Gustafsson <daniel@yesql.se>
Cc: Andres Freund <andres@anarazel.de>, 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-12T21:56:38Z
Lists: pgsql-bugs
I went ahead and pushed the patches-under-discussion (the larger
one only to HEAD, for now).  I've confirmed that the ssl tests
are solid now under OpenBSD 7.0, on bare metal as well as on the
VM I was using before.  They are still broken under OpenBSD 6.8,
which seems interesting but not so interesting that I want to
spend more time on it (seeing that 6.8 is EOL as far as
openbsd.org is concerned).  Does anyone want to recheck 6.9?

			regards, tom lane



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()