]> granicus.if.org Git - postgresql/commit
Fix compilation with older OpenSSL versions
authorPeter Eisentraut <peter@eisentraut.org>
Sat, 28 Sep 2019 13:54:02 +0000 (15:54 +0200)
committerPeter Eisentraut <peter@eisentraut.org>
Sat, 28 Sep 2019 20:49:01 +0000 (22:49 +0200)
commit4e6f101e921c9a7ff4e7fff847966b9cdd390753
tree7a0b9de99ab74ad7652b5dafb1333ff6700a5d21
parent4ea03f3f4eba3c76abae2e69bf48c921799a68a3
Fix compilation with older OpenSSL versions

Some older OpenSSL versions (0.9.8 branch) define TLS*_VERSION macros
but not the corresponding SSL_OP_NO_* macro, which causes the code for
handling ssl_min_protocol_version/ssl_max_protocol_version to fail to
compile.  To fix, add more #ifdefs and error handling.

Reported-by: Victor Wagner <vitus@wagner.pp.ru>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/20190924101859.09383b4f%40fafnir.local.vm
src/backend/libpq/be-secure-openssl.c