Fix compilation on OpenSSL 1.0.2 and LibreSSL

Heikki Linnakangas <heikki.linnakangas@iki.fi>

Commit: 5bcbe9813bf91bcf14ef3a580162f1600dd3d1d4
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: 2024-04-30T05:22:24Z
Releases: 17.0
Fix compilation on OpenSSL 1.0.2 and LibreSSL

SSL_AD_NO_APPLICATION_PROTOCOL was introduced in OpenSSL 1.1.0.

While we're at it, add a link to the related OpenSSL github issue to
the comment.

Per buildfarm and Tom Lane.

Discussion: https://www.postgresql.org/message-id/1452995.1714433552@sss.pgh.pa.us

Files

PathChange+/−
src/interfaces/libpq/fe-secure-openssl.c modified +9 −5

Discussion

Cited messages not in the archive: 1452995.1714433552@sss.pgh.pa.us