Support OpenSSL 1.1.0 in 9.3 and 9.2.

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

Commit: fb50c38e9cb4f4a9953a918664536f3e344ec858
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: 2017-04-17T17:52:42Z
Releases: 9.2.21
Support OpenSSL 1.1.0 in 9.3 and 9.2.

This commit back-patches the equivalent of the 9.5-branch commits
e2838c580 and 48e5ba61e, so that we can work with OpenSSL 1.1.0
in all supported branches.

Original patches by Andreas Karlsson and Heikki Linnakangas,
back-patching work by Andreas Karlsson.

Patch: https://postgr.es/m/0c817abb-3f7d-20fb-583a-58f7593a0bea@proxel.se
Discussion: https://postgr.es/m/5129.1492293840@sss.pgh.pa.us

Files

PathChange+/−
configure modified +235 −22
configure.in modified +12 −2
contrib/pgcrypto/internal.c modified +0 −9
contrib/pgcrypto/openssl.c modified +102 −28
contrib/pgcrypto/pgp-s2k.c modified +3 −3
contrib/pgcrypto/px-crypt.c modified +1 −1
contrib/pgcrypto/px.h modified +0 −1
src/backend/libpq/be-secure.c modified +77 −14
src/include/pg_config.h.in modified +15 −0
src/interfaces/libpq/fe-secure.c modified +18 −7
src/interfaces/libpq/libpq-int.h modified +1 −1

Discussion