pgpool2.git / summary / log / commit / refs

commit    b0f2054f37fc29fb8d33fe40a337e89e72f0df52
Author:   Tatsuo Ishii <ishii@postgresql.org>
Date:     Wed Dec 24 06:19:12 2025 +0000

    Explicitly stat supported minimum OpenSSL version.
    
    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 | 4 ++++ doc.ja/src/sgml/installation.sgml | 1 + doc/src/sgml/installation.sgml | 8 +++++--- 3 files changed, 10 insertions(+), 3 deletions(-) diff --git a/configure.ac b/configure.ac index bc668a4f2..8e9dbb3de 100644 --- a/configure.ac +++ b/configure.ac @@ -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)])], diff --git a/doc.ja/src/sgml/installation.sgml b/doc.ja/src/sgml/installation.sgml index 715aa6dc8..68cd0e222 100644 --- a/doc.ja/src/sgml/installation.sgml +++ b/doc.ja/src/sgml/installation.sgml @@ -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>サポートは無効です。 diff --git a/doc/src/sgml/installation.sgml b/doc/src/sgml/installation.sgml index f8111fa7c..3c56b718a 100644 --- a/doc/src/sgml/installation.sgml +++ b/doc/src/sgml/installation.sgml @@ -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. [parent: 39fc32ada4ee]