mirror of
https://github.com/postgres/postgres.git
synced 2025-09-05 02:22:28 +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:
@@ -13,7 +13,7 @@ subdir = src/test/ssl
|
||||
top_builddir = ../../..
|
||||
include $(top_builddir)/src/Makefile.global
|
||||
|
||||
export with_openssl
|
||||
export with_ssl
|
||||
|
||||
CERTIFICATES := server_ca server-cn-and-alt-names \
|
||||
server-cn-only server-single-alt-name server-multiple-alt-names \
|
||||
|
@@ -11,13 +11,13 @@ use lib $FindBin::RealBin;
|
||||
|
||||
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
|
||||
{
|
||||
plan skip_all => 'SSL not supported by this build';
|
||||
plan tests => 93;
|
||||
}
|
||||
|
||||
#### Some configuration
|
||||
|
@@ -13,9 +13,9 @@ use lib $FindBin::RealBin;
|
||||
|
||||
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.
|
||||
|
Reference in New Issue
Block a user