Explicitly stat supported minimum OpenSSL version.
authorTatsuo Ishii <ishii@postgresql.org>
Wed, 24 Dec 2025 06:19:12 +0000 (15:19 +0900)
committerTatsuo Ishii <ishii@postgresql.org>
Wed, 24 Dec 2025 06:27:28 +0000 (15:27 +0900)
That can be done in configure.ac by using
    AC_DEFINE(OPENSSL_API_COMPAT, [0x10002000L],
            [Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions.])

The supported minimum version is 1.0.2, which is identical to
PostgreSQL at this point.  (Actually the AC_DEFINE is brought in from
PostgreSQL).  Also this could avoid OpenSSL deprecation warnings if
your installed OpenSSL is new, like 3.0.

Moreover, add mention to installation document that required minimum
version of OpenSSL is 1.0.2.

Backpatch-through: v4.3

configure.ac
doc.ja/src/sgml/installation.sgml
doc/src/sgml/installation.sgml

index bc668a4f20f9cc1cb5f26dd0f7018239227a5b3b..8e9dbb3de6b2a8c3116e91674e56cf5c3edb51b9 100644 (file)
@@ -359,6 +359,10 @@ AC_ARG_WITH(openssl,
     [openssl=no])
 
 if test "$with_openssl" = yes || test "$with_openssl" = auto; then
+    # Minimum required OpenSSL version is 1.0.2
+    AC_DEFINE(OPENSSL_API_COMPAT, [0x10002000L],
+            [Define to the OpenSSL API version in use. This avoids deprecation warnings from newer OpenSSL versions.])
+
     AC_CHECK_HEADERS(openssl/ssl.h,
         [AC_DEFINE([USE_SSL], 1,
             [Define to 1 to build with SSL support. (--with-openssl)])],
index 715aa6dc85a0b9cc89202288c815f8d778b44fa4..68cd0e222a9888635a77ff64a95f2b0e61020e60 100644 (file)
@@ -404,6 +404,7 @@ autoreconf -fi
       disabled by default.
       -->
       <productname>Pgpool-II</productname>バイナリが<productname>OpenSSL</productname>サポート付で構築されます。
+      必要な<productname>OpenSSL</productname>の最小バージョンは1.0.2です。
       AES256暗号化を使ってパスワードを暗号化する場合もこのオプションが必要です。
       詳細は<xref linkend="auth-aes-encrypted-password">を参照してください。
       デフォルトでは<productname>OpenSSL</productname>サポートは無効です。
index f8111fa7c95432f25b017eb10b2c9a4738d05970..3c56b718af9b8a7c22a157c103a8c87558c58ce2 100644 (file)
@@ -350,9 +350,11 @@ autoreconf -fi
     <listitem>
      <para>
       <productname>Pgpool-II</productname> binaries will be built
-      with <productname>OpenSSL</productname> support.  If you plan to
-      encrypt passwords using AES256 encryption, you need this option
-      too.  See <xref linkend="auth-aes-encrypted-password"> for more
+      with <productname>OpenSSL</productname> support.  The required
+      minimum version of <productname>OpenSSL</productname> is
+      1.0.2. If you plan to encrypt passwords using AES256 encryption,
+      you need this option too.
+      See <xref linkend="auth-aes-encrypted-password"> for more
       details.
       <productname>OpenSSL</productname> support is
       disabled by default.