mirror of
https://github.com/postgres/postgres.git
synced 2025-04-20 00:42:27 +03:00
Introduce --with-ssl={openssl} as a configure option
This is a replacement for the existing --with-openssl, extending the logic to make easier the addition of new SSL libraries. The grammar is chosen to be similar to --with-uuid, where multiple values can be chosen, with "openssl" as the only supported value for now. The original switch, --with-openssl, is kept for compatibility. Author: Daniel Gustafsson, Michael Paquier Reviewed-by: Jacob Champion Discussion: https://postgr.es/m/FAB21FC8-0F62-434F-AA78-6BD9336D630A@yesql.se
This commit is contained in:
parent
7c5d57caed
commit
fe61df7f82
110
configure
vendored
110
configure
vendored
@ -653,6 +653,7 @@ LIBOBJS
|
|||||||
UUID_LIBS
|
UUID_LIBS
|
||||||
LDAP_LIBS_BE
|
LDAP_LIBS_BE
|
||||||
LDAP_LIBS_FE
|
LDAP_LIBS_FE
|
||||||
|
with_ssl
|
||||||
PTHREAD_CFLAGS
|
PTHREAD_CFLAGS
|
||||||
PTHREAD_LIBS
|
PTHREAD_LIBS
|
||||||
PTHREAD_CC
|
PTHREAD_CC
|
||||||
@ -709,7 +710,6 @@ with_uuid
|
|||||||
with_readline
|
with_readline
|
||||||
with_systemd
|
with_systemd
|
||||||
with_selinux
|
with_selinux
|
||||||
with_openssl
|
|
||||||
with_ldap
|
with_ldap
|
||||||
with_krb_srvnam
|
with_krb_srvnam
|
||||||
krb_srvtab
|
krb_srvtab
|
||||||
@ -854,7 +854,6 @@ with_pam
|
|||||||
with_bsd_auth
|
with_bsd_auth
|
||||||
with_ldap
|
with_ldap
|
||||||
with_bonjour
|
with_bonjour
|
||||||
with_openssl
|
|
||||||
with_selinux
|
with_selinux
|
||||||
with_systemd
|
with_systemd
|
||||||
with_readline
|
with_readline
|
||||||
@ -866,6 +865,8 @@ with_libxslt
|
|||||||
with_system_tzdata
|
with_system_tzdata
|
||||||
with_zlib
|
with_zlib
|
||||||
with_gnu_ld
|
with_gnu_ld
|
||||||
|
with_ssl
|
||||||
|
with_openssl
|
||||||
enable_largefile
|
enable_largefile
|
||||||
'
|
'
|
||||||
ac_precious_vars='build_alias
|
ac_precious_vars='build_alias
|
||||||
@ -1556,7 +1557,6 @@ Optional Packages:
|
|||||||
--with-bsd-auth build with BSD Authentication support
|
--with-bsd-auth build with BSD Authentication support
|
||||||
--with-ldap build with LDAP support
|
--with-ldap build with LDAP support
|
||||||
--with-bonjour build with Bonjour support
|
--with-bonjour build with Bonjour support
|
||||||
--with-openssl build with OpenSSL support
|
|
||||||
--with-selinux build with SELinux support
|
--with-selinux build with SELinux support
|
||||||
--with-systemd build with systemd support
|
--with-systemd build with systemd support
|
||||||
--without-readline do not use GNU Readline nor BSD Libedit for editing
|
--without-readline do not use GNU Readline nor BSD Libedit for editing
|
||||||
@ -1570,6 +1570,8 @@ Optional Packages:
|
|||||||
use system time zone data in DIR
|
use system time zone data in DIR
|
||||||
--without-zlib do not use Zlib
|
--without-zlib do not use Zlib
|
||||||
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
--with-gnu-ld assume the C compiler uses GNU ld [default=no]
|
||||||
|
--with-ssl=LIB use LIB for SSL/TLS support (openssl)
|
||||||
|
--with-openssl obsolete spelling of --with-ssl=openssl
|
||||||
|
|
||||||
Some influential environment variables:
|
Some influential environment variables:
|
||||||
CC C compiler command
|
CC C compiler command
|
||||||
@ -8070,41 +8072,6 @@ fi
|
|||||||
$as_echo "$with_bonjour" >&6; }
|
$as_echo "$with_bonjour" >&6; }
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# OpenSSL
|
|
||||||
#
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build with OpenSSL support" >&5
|
|
||||||
$as_echo_n "checking whether to build with OpenSSL support... " >&6; }
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Check whether --with-openssl was given.
|
|
||||||
if test "${with_openssl+set}" = set; then :
|
|
||||||
withval=$with_openssl;
|
|
||||||
case $withval in
|
|
||||||
yes)
|
|
||||||
|
|
||||||
$as_echo "#define USE_OPENSSL 1" >>confdefs.h
|
|
||||||
|
|
||||||
;;
|
|
||||||
no)
|
|
||||||
:
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
else
|
|
||||||
with_openssl=no
|
|
||||||
|
|
||||||
fi
|
|
||||||
|
|
||||||
|
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_openssl" >&5
|
|
||||||
$as_echo "$with_openssl" >&6; }
|
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# SELinux
|
# SELinux
|
||||||
#
|
#
|
||||||
@ -12174,7 +12141,64 @@ fi
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# SSL Library
|
||||||
|
#
|
||||||
|
# There is currently only one supported SSL/TLS library: OpenSSL.
|
||||||
|
#
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-ssl was given.
|
||||||
|
if test "${with_ssl+set}" = set; then :
|
||||||
|
withval=$with_ssl;
|
||||||
|
case $withval in
|
||||||
|
yes)
|
||||||
|
as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
|
||||||
|
;;
|
||||||
|
no)
|
||||||
|
as_fn_error $? "argument required for --with-ssl option" "$LINENO" 5
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
if test x"$with_ssl" = x"" ; then
|
||||||
|
with_ssl=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
# Check whether --with-openssl was given.
|
||||||
|
if test "${with_openssl+set}" = set; then :
|
||||||
|
withval=$with_openssl;
|
||||||
|
case $withval in
|
||||||
|
yes)
|
||||||
|
:
|
||||||
|
;;
|
||||||
|
no)
|
||||||
|
:
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
as_fn_error $? "no argument expected for --with-openssl option" "$LINENO" 5
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
else
|
||||||
|
with_openssl=no
|
||||||
|
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$with_openssl" = yes ; then
|
if test "$with_openssl" = yes ; then
|
||||||
|
with_ssl=openssl
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$with_ssl" = openssl ; then
|
||||||
# Minimum required OpenSSL version is 1.0.1
|
# Minimum required OpenSSL version is 1.0.1
|
||||||
|
|
||||||
$as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
|
$as_echo "#define OPENSSL_API_COMPAT 0x10001000L" >>confdefs.h
|
||||||
@ -12435,8 +12459,14 @@ _ACEOF
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
|
$as_echo "#define USE_OPENSSL 1" >>confdefs.h
|
||||||
|
|
||||||
|
elif test "$with_ssl" != no ; then
|
||||||
|
as_fn_error $? "--with-ssl must specify openssl" "$LINENO" 5
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
if test "$with_pam" = yes ; then
|
if test "$with_pam" = yes ; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pam_start in -lpam" >&5
|
||||||
$as_echo_n "checking for pam_start in -lpam... " >&6; }
|
$as_echo_n "checking for pam_start in -lpam... " >&6; }
|
||||||
@ -13322,7 +13352,7 @@ done
|
|||||||
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$with_openssl" = yes ; then
|
if test "$with_ssl" = openssl ; then
|
||||||
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
|
ac_fn_c_check_header_mongrel "$LINENO" "openssl/ssl.h" "ac_cv_header_openssl_ssl_h" "$ac_includes_default"
|
||||||
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
|
if test "x$ac_cv_header_openssl_ssl_h" = xyes; then :
|
||||||
|
|
||||||
@ -18098,7 +18128,7 @@ fi
|
|||||||
# will be used.
|
# will be used.
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: checking which random number source to use" >&5
|
||||||
$as_echo_n "checking which random number source to use... " >&6; }
|
$as_echo_n "checking which random number source to use... " >&6; }
|
||||||
if test x"$with_openssl" = x"yes" ; then
|
if test x"$with_ssl" = x"openssl" ; then
|
||||||
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
|
{ $as_echo "$as_me:${as_lineno-$LINENO}: result: OpenSSL" >&5
|
||||||
$as_echo "OpenSSL" >&6; }
|
$as_echo "OpenSSL" >&6; }
|
||||||
elif test x"$PORTNAME" = x"win32" ; then
|
elif test x"$PORTNAME" = x"win32" ; then
|
||||||
|
31
configure.ac
31
configure.ac
@ -852,15 +852,6 @@ PGAC_ARG_BOOL(with, bonjour, no,
|
|||||||
AC_MSG_RESULT([$with_bonjour])
|
AC_MSG_RESULT([$with_bonjour])
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
# OpenSSL
|
|
||||||
#
|
|
||||||
AC_MSG_CHECKING([whether to build with OpenSSL support])
|
|
||||||
PGAC_ARG_BOOL(with, openssl, no, [build with OpenSSL support],
|
|
||||||
[AC_DEFINE([USE_OPENSSL], 1, [Define to build with OpenSSL support. (--with-openssl)])])
|
|
||||||
AC_MSG_RESULT([$with_openssl])
|
|
||||||
AC_SUBST(with_openssl)
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# SELinux
|
# SELinux
|
||||||
#
|
#
|
||||||
@ -1205,7 +1196,21 @@ if test "$with_gssapi" = yes ; then
|
|||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
#
|
||||||
|
# SSL Library
|
||||||
|
#
|
||||||
|
# There is currently only one supported SSL/TLS library: OpenSSL.
|
||||||
|
#
|
||||||
|
PGAC_ARG_REQ(with, ssl, [LIB], [use LIB for SSL/TLS support (openssl)])
|
||||||
|
if test x"$with_ssl" = x"" ; then
|
||||||
|
with_ssl=no
|
||||||
|
fi
|
||||||
|
PGAC_ARG_BOOL(with, openssl, no, [obsolete spelling of --with-ssl=openssl])
|
||||||
if test "$with_openssl" = yes ; then
|
if test "$with_openssl" = yes ; then
|
||||||
|
with_ssl=openssl
|
||||||
|
fi
|
||||||
|
|
||||||
|
if test "$with_ssl" = openssl ; then
|
||||||
dnl Order matters!
|
dnl Order matters!
|
||||||
# Minimum required OpenSSL version is 1.0.1
|
# Minimum required OpenSSL version is 1.0.1
|
||||||
AC_DEFINE(OPENSSL_API_COMPAT, [0x10001000L],
|
AC_DEFINE(OPENSSL_API_COMPAT, [0x10001000L],
|
||||||
@ -1229,7 +1234,11 @@ if test "$with_openssl" = yes ; then
|
|||||||
# thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
|
# thread-safety. In 1.1.0, it's no longer required, and CRYPTO_lock()
|
||||||
# function was removed.
|
# function was removed.
|
||||||
AC_CHECK_FUNCS([CRYPTO_lock])
|
AC_CHECK_FUNCS([CRYPTO_lock])
|
||||||
|
AC_DEFINE([USE_OPENSSL], 1, [Define to 1 if you have OpenSSL support.])
|
||||||
|
elif test "$with_ssl" != no ; then
|
||||||
|
AC_MSG_ERROR([--with-ssl must specify openssl])
|
||||||
fi
|
fi
|
||||||
|
AC_SUBST(with_ssl)
|
||||||
|
|
||||||
if test "$with_pam" = yes ; then
|
if test "$with_pam" = yes ; then
|
||||||
AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])])
|
AC_CHECK_LIB(pam, pam_start, [], [AC_MSG_ERROR([library 'pam' is required for PAM])])
|
||||||
@ -1402,7 +1411,7 @@ if test "$with_gssapi" = yes ; then
|
|||||||
[AC_CHECK_HEADERS(gssapi.h, [], [AC_MSG_ERROR([gssapi.h header file is required for GSSAPI])])])
|
[AC_CHECK_HEADERS(gssapi.h, [], [AC_MSG_ERROR([gssapi.h header file is required for GSSAPI])])])
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if test "$with_openssl" = yes ; then
|
if test "$with_ssl" = openssl ; then
|
||||||
AC_CHECK_HEADER(openssl/ssl.h, [], [AC_MSG_ERROR([header file <openssl/ssl.h> is required for OpenSSL])])
|
AC_CHECK_HEADER(openssl/ssl.h, [], [AC_MSG_ERROR([header file <openssl/ssl.h> is required for OpenSSL])])
|
||||||
AC_CHECK_HEADER(openssl/err.h, [], [AC_MSG_ERROR([header file <openssl/err.h> is required for OpenSSL])])
|
AC_CHECK_HEADER(openssl/err.h, [], [AC_MSG_ERROR([header file <openssl/err.h> is required for OpenSSL])])
|
||||||
fi
|
fi
|
||||||
@ -2159,7 +2168,7 @@ fi
|
|||||||
# first choice, else the native platform sources (Windows API or /dev/urandom)
|
# first choice, else the native platform sources (Windows API or /dev/urandom)
|
||||||
# will be used.
|
# will be used.
|
||||||
AC_MSG_CHECKING([which random number source to use])
|
AC_MSG_CHECKING([which random number source to use])
|
||||||
if test x"$with_openssl" = x"yes" ; then
|
if test x"$with_ssl" = x"openssl" ; then
|
||||||
AC_MSG_RESULT([OpenSSL])
|
AC_MSG_RESULT([OpenSSL])
|
||||||
elif test x"$PORTNAME" = x"win32" ; then
|
elif test x"$PORTNAME" = x"win32" ; then
|
||||||
AC_MSG_RESULT([Windows native])
|
AC_MSG_RESULT([Windows native])
|
||||||
|
@ -51,7 +51,7 @@ SUBDIRS = \
|
|||||||
unaccent \
|
unaccent \
|
||||||
vacuumlo
|
vacuumlo
|
||||||
|
|
||||||
ifeq ($(with_openssl),yes)
|
ifeq ($(with_ssl),openssl)
|
||||||
SUBDIRS += sslinfo
|
SUBDIRS += sslinfo
|
||||||
else
|
else
|
||||||
ALWAYS_SUBDIRS += sslinfo
|
ALWAYS_SUBDIRS += sslinfo
|
||||||
|
@ -10,8 +10,8 @@ OSSL_TESTS = sha2 des 3des cast5
|
|||||||
ZLIB_TST = pgp-compression
|
ZLIB_TST = pgp-compression
|
||||||
ZLIB_OFF_TST = pgp-zlib-DISABLED
|
ZLIB_OFF_TST = pgp-zlib-DISABLED
|
||||||
|
|
||||||
CF_SRCS = $(if $(subst no,,$(with_openssl)), $(OSSL_SRCS), $(INT_SRCS))
|
CF_SRCS = $(if $(subst openssl,,$(with_ssl)), $(INT_SRCS), $(OSSL_SRCS))
|
||||||
CF_TESTS = $(if $(subst no,,$(with_openssl)), $(OSSL_TESTS), $(INT_TESTS))
|
CF_TESTS = $(if $(subst openssl,,$(with_ssl)), $(INT_TESTS), $(OSSL_TESTS))
|
||||||
CF_PGP_TESTS = $(if $(subst no,,$(with_zlib)), $(ZLIB_TST), $(ZLIB_OFF_TST))
|
CF_PGP_TESTS = $(if $(subst no,,$(with_zlib)), $(ZLIB_TST), $(ZLIB_OFF_TST))
|
||||||
|
|
||||||
SRCS = \
|
SRCS = \
|
||||||
|
@ -967,7 +967,7 @@ build-postgresql:
|
|||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
|
||||||
<varlistentry>
|
<varlistentry>
|
||||||
<term><option>--with-openssl</option>
|
<term><option>--with-ssl=<replaceable>LIBRARY</replaceable></option>
|
||||||
<indexterm>
|
<indexterm>
|
||||||
<primary>OpenSSL</primary>
|
<primary>OpenSSL</primary>
|
||||||
<seealso>SSL</seealso>
|
<seealso>SSL</seealso>
|
||||||
@ -976,11 +976,22 @@ build-postgresql:
|
|||||||
<listitem>
|
<listitem>
|
||||||
<para>
|
<para>
|
||||||
Build with support for <acronym>SSL</acronym> (encrypted)
|
Build with support for <acronym>SSL</acronym> (encrypted)
|
||||||
connections. This requires the <productname>OpenSSL</productname>
|
connections. The only <replaceable>LIBRARY</replaceable>
|
||||||
package to be installed. <filename>configure</filename> will check
|
supported is <option>openssl</option>. This requires the
|
||||||
for the required header files and libraries to make sure that
|
<productname>OpenSSL</productname> package to be installed.
|
||||||
your <productname>OpenSSL</productname> installation is sufficient
|
<filename>configure</filename> will check for the required
|
||||||
before proceeding.
|
header files and libraries to make sure that your
|
||||||
|
<productname>OpenSSL</productname> installation is sufficient
|
||||||
|
before proceeding.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</varlistentry>
|
||||||
|
|
||||||
|
<varlistentry>
|
||||||
|
<term><option>--with-openssl</option></term>
|
||||||
|
<listitem>
|
||||||
|
<para>
|
||||||
|
Obsolete equivalent of <literal>--with-ssl=openssl</literal>.
|
||||||
</para>
|
</para>
|
||||||
</listitem>
|
</listitem>
|
||||||
</varlistentry>
|
</varlistentry>
|
||||||
|
@ -1154,7 +1154,7 @@ gen_random_uuid() returns uuid
|
|||||||
<filename>pgcrypto</filename> configures itself according to the findings of the
|
<filename>pgcrypto</filename> configures itself according to the findings of the
|
||||||
main PostgreSQL <literal>configure</literal> script. The options that
|
main PostgreSQL <literal>configure</literal> script. The options that
|
||||||
affect it are <literal>--with-zlib</literal> and
|
affect it are <literal>--with-zlib</literal> and
|
||||||
<literal>--with-openssl</literal>.
|
<literal>--with-ssl=openssl</literal>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<para>
|
<para>
|
||||||
This extension won't build at all unless the installation was
|
This extension won't build at all unless the installation was
|
||||||
configured with <literal>--with-openssl</literal>.
|
configured with <literal>--with-ssl=openssl</literal>.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<sect2>
|
<sect2>
|
||||||
|
@ -183,7 +183,7 @@ with_icu = @with_icu@
|
|||||||
with_perl = @with_perl@
|
with_perl = @with_perl@
|
||||||
with_python = @with_python@
|
with_python = @with_python@
|
||||||
with_tcl = @with_tcl@
|
with_tcl = @with_tcl@
|
||||||
with_openssl = @with_openssl@
|
with_ssl = @with_ssl@
|
||||||
with_readline = @with_readline@
|
with_readline = @with_readline@
|
||||||
with_selinux = @with_selinux@
|
with_selinux = @with_selinux@
|
||||||
with_systemd = @with_systemd@
|
with_systemd = @with_systemd@
|
||||||
|
@ -28,7 +28,7 @@ OBJS = \
|
|||||||
pqmq.o \
|
pqmq.o \
|
||||||
pqsignal.o
|
pqsignal.o
|
||||||
|
|
||||||
ifeq ($(with_openssl),yes)
|
ifeq ($(with_ssl),openssl)
|
||||||
OBJS += be-secure-openssl.o
|
OBJS += be-secure-openssl.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -1041,7 +1041,7 @@ parse_hba_line(TokenizedLine *tok_line, int elevel)
|
|||||||
ereport(elevel,
|
ereport(elevel,
|
||||||
(errcode(ERRCODE_CONFIG_FILE_ERROR),
|
(errcode(ERRCODE_CONFIG_FILE_ERROR),
|
||||||
errmsg("hostssl record cannot match because SSL is not supported by this build"),
|
errmsg("hostssl record cannot match because SSL is not supported by this build"),
|
||||||
errhint("Compile with --with-openssl to use SSL connections."),
|
errhint("Compile with --with-ssl=openssl to use SSL connections."),
|
||||||
errcontext("line %d of configuration file \"%s\"",
|
errcontext("line %d of configuration file \"%s\"",
|
||||||
line_num, HbaFileName)));
|
line_num, HbaFileName)));
|
||||||
*err_msg = "hostssl record cannot match because SSL is not supported by this build";
|
*err_msg = "hostssl record cannot match because SSL is not supported by this build";
|
||||||
|
@ -80,7 +80,7 @@ OBJS_COMMON = \
|
|||||||
wait_error.o \
|
wait_error.o \
|
||||||
wchar.o
|
wchar.o
|
||||||
|
|
||||||
ifeq ($(with_openssl),yes)
|
ifeq ($(with_ssl),openssl)
|
||||||
OBJS_COMMON += \
|
OBJS_COMMON += \
|
||||||
protocol_openssl.o \
|
protocol_openssl.o \
|
||||||
cryptohash_openssl.o
|
cryptohash_openssl.o
|
||||||
|
@ -899,7 +899,7 @@
|
|||||||
/* Define to select named POSIX semaphores. */
|
/* Define to select named POSIX semaphores. */
|
||||||
#undef USE_NAMED_POSIX_SEMAPHORES
|
#undef USE_NAMED_POSIX_SEMAPHORES
|
||||||
|
|
||||||
/* Define to build with OpenSSL support. (--with-openssl) */
|
/* Define to build with OpenSSL support. (--with-ssl=openssl) */
|
||||||
#undef USE_OPENSSL
|
#undef USE_OPENSSL
|
||||||
|
|
||||||
/* Define to 1 to build with PAM support. (--with-pam) */
|
/* Define to 1 to build with PAM support. (--with-pam) */
|
||||||
|
@ -45,9 +45,14 @@ OBJS = \
|
|||||||
pqexpbuffer.o \
|
pqexpbuffer.o \
|
||||||
fe-auth.o
|
fe-auth.o
|
||||||
|
|
||||||
ifeq ($(with_openssl),yes)
|
# File shared across all SSL implementations supported.
|
||||||
|
ifneq ($(with_ssl),no)
|
||||||
|
OBJS += \
|
||||||
|
fe-secure-common.o
|
||||||
|
endif
|
||||||
|
|
||||||
|
ifeq ($(with_ssl),openssl)
|
||||||
OBJS += \
|
OBJS += \
|
||||||
fe-secure-common.o \
|
|
||||||
fe-secure-openssl.o
|
fe-secure-openssl.o
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ ifneq (,$(filter ldap,$(PG_TEST_EXTRA)))
|
|||||||
SUBDIRS += ldap
|
SUBDIRS += ldap
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
ifeq ($(with_openssl),yes)
|
ifeq ($(with_ssl),openssl)
|
||||||
ifneq (,$(filter ssl,$(PG_TEST_EXTRA)))
|
ifneq (,$(filter ssl,$(PG_TEST_EXTRA)))
|
||||||
SUBDIRS += ssl
|
SUBDIRS += ssl
|
||||||
endif
|
endif
|
||||||
|
@ -28,7 +28,7 @@ SUBDIRS = \
|
|||||||
unsafe_tests \
|
unsafe_tests \
|
||||||
worker_spi
|
worker_spi
|
||||||
|
|
||||||
ifeq ($(with_openssl),yes)
|
ifeq ($(with_ssl),openssl)
|
||||||
SUBDIRS += ssl_passphrase_callback
|
SUBDIRS += ssl_passphrase_callback
|
||||||
else
|
else
|
||||||
ALWAYS_SUBDIRS += ssl_passphrase_callback
|
ALWAYS_SUBDIRS += ssl_passphrase_callback
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# ssl_passphrase_callback Makefile
|
# ssl_passphrase_callback Makefile
|
||||||
|
|
||||||
export with_openssl
|
export with_ssl
|
||||||
|
|
||||||
MODULE_big = ssl_passphrase_func
|
MODULE_big = ssl_passphrase_func
|
||||||
OBJS = ssl_passphrase_func.o $(WIN32RES)
|
OBJS = ssl_passphrase_func.o $(WIN32RES)
|
||||||
|
@ -7,9 +7,9 @@ use TestLib;
|
|||||||
use Test::More;
|
use Test::More;
|
||||||
use PostgresNode;
|
use PostgresNode;
|
||||||
|
|
||||||
unless (($ENV{with_openssl} || 'no') eq 'yes')
|
unless ($ENV{with_ssl} eq 'openssl')
|
||||||
{
|
{
|
||||||
plan skip_all => 'SSL not supported by this build';
|
plan skip_all => 'OpenSSL not supported by this build';
|
||||||
}
|
}
|
||||||
|
|
||||||
my $clearpass = "FooBaR1";
|
my $clearpass = "FooBaR1";
|
||||||
|
@ -13,7 +13,7 @@ subdir = src/test/ssl
|
|||||||
top_builddir = ../../..
|
top_builddir = ../../..
|
||||||
include $(top_builddir)/src/Makefile.global
|
include $(top_builddir)/src/Makefile.global
|
||||||
|
|
||||||
export with_openssl
|
export with_ssl
|
||||||
|
|
||||||
CERTIFICATES := server_ca server-cn-and-alt-names \
|
CERTIFICATES := server_ca server-cn-and-alt-names \
|
||||||
server-cn-only server-single-alt-name server-multiple-alt-names \
|
server-cn-only server-single-alt-name server-multiple-alt-names \
|
||||||
|
@ -11,13 +11,13 @@ use lib $FindBin::RealBin;
|
|||||||
|
|
||||||
use SSLServer;
|
use SSLServer;
|
||||||
|
|
||||||
if ($ENV{with_openssl} eq 'yes')
|
if ($ENV{with_ssl} ne 'openssl')
|
||||||
{
|
{
|
||||||
plan tests => 93;
|
plan skip_all => 'OpenSSL not supported by this build';
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
plan skip_all => 'SSL not supported by this build';
|
plan tests => 93;
|
||||||
}
|
}
|
||||||
|
|
||||||
#### Some configuration
|
#### Some configuration
|
||||||
|
@ -13,9 +13,9 @@ use lib $FindBin::RealBin;
|
|||||||
|
|
||||||
use SSLServer;
|
use SSLServer;
|
||||||
|
|
||||||
if ($ENV{with_openssl} ne 'yes')
|
if ($ENV{with_ssl} ne 'openssl')
|
||||||
{
|
{
|
||||||
plan skip_all => 'SSL not supported by this build';
|
plan skip_all => 'OpenSSL not supported by this build';
|
||||||
}
|
}
|
||||||
|
|
||||||
# This is the hostname used to connect to the server.
|
# This is the hostname used to connect to the server.
|
||||||
|
@ -1156,7 +1156,7 @@ sub GetFakeConfigure
|
|||||||
$cfg .= ' --with-ldap' if ($self->{options}->{ldap});
|
$cfg .= ' --with-ldap' if ($self->{options}->{ldap});
|
||||||
$cfg .= ' --without-zlib' unless ($self->{options}->{zlib});
|
$cfg .= ' --without-zlib' unless ($self->{options}->{zlib});
|
||||||
$cfg .= ' --with-extra-version' if ($self->{options}->{extraver});
|
$cfg .= ' --with-extra-version' if ($self->{options}->{extraver});
|
||||||
$cfg .= ' --with-openssl' if ($self->{options}->{openssl});
|
$cfg .= ' --with-ssl=openssl' if ($self->{options}->{openssl});
|
||||||
$cfg .= ' --with-uuid' if ($self->{options}->{uuid});
|
$cfg .= ' --with-uuid' if ($self->{options}->{uuid});
|
||||||
$cfg .= ' --with-libxml' if ($self->{options}->{xml});
|
$cfg .= ' --with-libxml' if ($self->{options}->{xml});
|
||||||
$cfg .= ' --with-libxslt' if ($self->{options}->{xslt});
|
$cfg .= ' --with-libxslt' if ($self->{options}->{xslt});
|
||||||
|
@ -16,7 +16,7 @@ our $config = {
|
|||||||
tcl => undef, # --with-tcl=<path>
|
tcl => undef, # --with-tcl=<path>
|
||||||
perl => undef, # --with-perl=<path>
|
perl => undef, # --with-perl=<path>
|
||||||
python => undef, # --with-python=<path>
|
python => undef, # --with-python=<path>
|
||||||
openssl => undef, # --with-openssl=<path>
|
openssl => undef, # --with-ssl=openssl with <path>
|
||||||
uuid => undef, # --with-uuid=<path>
|
uuid => undef, # --with-uuid=<path>
|
||||||
xml => undef, # --with-libxml=<path>
|
xml => undef, # --with-libxml=<path>
|
||||||
xslt => undef, # --with-libxslt=<path>
|
xslt => undef, # --with-libxslt=<path>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user