diff options
| author | Peter Eisentraut | 2018-06-26 08:19:35 +0000 |
|---|---|---|
| committer | Peter Eisentraut | 2018-07-30 11:46:27 +0000 |
| commit | 98efa76fe313f62f84b94cd1f46c913c221b41fe (patch) | |
| tree | 692e3bbe61f94b7798339a956c73f845a3c18707 /src/test | |
| parent | ab87b8fedce3fa77ca0d684a42ecc055f189eb33 (diff) | |
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>
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/ssl/t/001_ssltests.pl | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/test/ssl/t/001_ssltests.pl b/src/test/ssl/t/001_ssltests.pl index e550207454d..2b875a3c956 100644 --- a/src/test/ssl/t/001_ssltests.pl +++ b/src/test/ssl/t/001_ssltests.pl @@ -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"; |
