Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51e3005

Browse files
committed
Allow SSL TAP tests to run on Windows
Windows does not enforce key file permissions checks in libpq, and psqlcan produce CRLF line endings on Windows.Backpatch to Release 12 (CRLF) and Release 11 (permissions check)
1 parent0baa556 commit51e3005

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

‎src/test/ssl/t/001_ssltests.pl

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -332,11 +332,16 @@
332332
"certificate authorization succeeds with correct client cert");
333333

334334
# client key with wrong permissions
335-
test_connect_fails(
336-
$common_connstr,
337-
"user=ssltestuser sslcert=ssl/client.crt sslkey=ssl/client_wrongperms_tmp.key",
338-
qr!\Qprivate key file "ssl/client_wrongperms_tmp.key" has group or world access\E!,
339-
"certificate authorization fails because of file permissions");
335+
SKIP:
336+
{
337+
skip"Permissions check not enforced on Windows", 2if ($windows_os);
338+
339+
test_connect_fails(
340+
$common_connstr,
341+
"user=ssltestuser sslcert=ssl/client.crt sslkey=ssl/client_wrongperms_tmp.key",
342+
qr!\Qprivate key file "ssl/client_wrongperms_tmp.key" has group or world access\E!,
343+
"certificate authorization fails because of file permissions");
344+
}
340345

341346
# client cert belonging to another user
342347
test_connect_fails(

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp