mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-09-04 10:57:19 +02:00
Allow SSL TAP tests to run on Windows
Windows does not enforce key file permissions checks in libpq, and psql can produce CRLF line endings on Windows. Backpatch to Release 12 (CRLF) and Release 11 (permissions check)
This commit is contained in:
parent
0baa55655e
commit
51e3005a07
@ -332,11 +332,16 @@ test_connect_ok(
|
|||||||
"certificate authorization succeeds with correct client cert");
|
"certificate authorization succeeds with correct client cert");
|
||||||
|
|
||||||
# client key with wrong permissions
|
# client key with wrong permissions
|
||||||
|
SKIP:
|
||||||
|
{
|
||||||
|
skip "Permissions check not enforced on Windows", 2 if ($windows_os);
|
||||||
|
|
||||||
test_connect_fails(
|
test_connect_fails(
|
||||||
$common_connstr,
|
$common_connstr,
|
||||||
"user=ssltestuser sslcert=ssl/client.crt sslkey=ssl/client_wrongperms_tmp.key",
|
"user=ssltestuser sslcert=ssl/client.crt sslkey=ssl/client_wrongperms_tmp.key",
|
||||||
qr!\Qprivate key file "ssl/client_wrongperms_tmp.key" has group or world access\E!,
|
qr!\Qprivate key file "ssl/client_wrongperms_tmp.key" has group or world access\E!,
|
||||||
"certificate authorization fails because of file permissions");
|
"certificate authorization fails because of file permissions");
|
||||||
|
}
|
||||||
|
|
||||||
# client cert belonging to another user
|
# client cert belonging to another user
|
||||||
test_connect_fails(
|
test_connect_fails(
|
||||||
|
Loading…
Reference in New Issue
Block a user