mirror of
https://github.com/postgres/postgres.git
synced 2025-07-15 19:21:59 +03:00
Add ssl_library preset parameter
This allows querying the SSL implementation used on the server side. It's analogous to using PQsslAttribute(conn, "library") in libpq. Reviewed-by: Daniel Gustafsson <daniel@yesql.se>
This commit is contained in:
@ -8,7 +8,7 @@ use File::Copy;
|
||||
|
||||
if ($ENV{with_openssl} eq 'yes')
|
||||
{
|
||||
plan tests => 64;
|
||||
plan tests => 65;
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -49,6 +49,11 @@ $node->init;
|
||||
$ENV{PGHOST} = $node->host;
|
||||
$ENV{PGPORT} = $node->port;
|
||||
$node->start;
|
||||
|
||||
# Run this before we lock down access below.
|
||||
my $result = $node->safe_psql('postgres', "SHOW ssl_library");
|
||||
is($result, 'OpenSSL', 'ssl_library parameter');
|
||||
|
||||
configure_test_server_for_ssl($node, $SERVERHOSTADDR, 'trust');
|
||||
|
||||
note "testing password-protected keys";
|
||||
|
Reference in New Issue
Block a user