diff options
author | Peter Eisentraut | 2020-07-19 10:14:42 +0000 |
---|---|---|
committer | Peter Eisentraut | 2020-07-19 10:14:42 +0000 |
commit | 4d3db13621be64fbac2faf7c01c4879d20885c1b (patch) | |
tree | 3be086260f4954c93750d49a2756a9e698c0d950 /configure.in | |
parent | 9b14280b207053f8b09e20b5719785ec4413b9d2 (diff) |
Define OPENSSL_API_COMPAT
This avoids deprecation warnings from newer OpenSSL versions (3.0.0 in
particular).
Discussion: https://www.postgresql.org/message-id/flat/FEF81714-D479-4512-839B-C769D2605F8A%40yesql.se
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/configure.in b/configure.in index 2e05ce2e4d6..e91e49a579e 100644 --- a/configure.in +++ b/configure.in @@ -1206,6 +1206,9 @@ fi if test "$with_openssl" = yes ; then dnl Order matters! + # Minimum required OpenSSL version is 1.0.1 + AC_DEFINE(OPENSSL_API_COMPAT, [0x10001000L], + [Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions.]) if test "$PORTNAME" != "win32"; then AC_CHECK_LIB(crypto, CRYPTO_new_ex_data, [], [AC_MSG_ERROR([library 'crypto' is required for OpenSSL])]) AC_CHECK_LIB(ssl, SSL_new, [], [AC_MSG_ERROR([library 'ssl' is required for OpenSSL])]) |