mirror of
https://github.com/postgres/postgres.git
synced 2025-04-24 10:47:04 +03:00
Fix capitalization of messages, per style guide
This commit is contained in:
parent
c5114e42fa
commit
d5627f3cd0
@ -426,7 +426,7 @@ pg_SASL_init(PGconn *conn, int payloadlen)
|
|||||||
!conn->ssl_in_use)
|
!conn->ssl_in_use)
|
||||||
{
|
{
|
||||||
printfPQExpBuffer(&conn->errorMessage,
|
printfPQExpBuffer(&conn->errorMessage,
|
||||||
libpq_gettext("Channel binding required, but SSL not in use\n"));
|
libpq_gettext("channel binding required, but SSL not in use\n"));
|
||||||
goto error;
|
goto error;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -833,13 +833,13 @@ check_expected_areq(AuthRequest areq, PGconn *conn)
|
|||||||
if (!pg_fe_scram_channel_bound(conn->sasl_state))
|
if (!pg_fe_scram_channel_bound(conn->sasl_state))
|
||||||
{
|
{
|
||||||
printfPQExpBuffer(&conn->errorMessage,
|
printfPQExpBuffer(&conn->errorMessage,
|
||||||
libpq_gettext("Channel binding required, but server authenticated client without channel binding\n"));
|
libpq_gettext("channel binding required, but server authenticated client without channel binding\n"));
|
||||||
result = false;
|
result = false;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
printfPQExpBuffer(&conn->errorMessage,
|
printfPQExpBuffer(&conn->errorMessage,
|
||||||
libpq_gettext("Channel binding required but not supported by server's authentication request\n"));
|
libpq_gettext("channel binding required but not supported by server's authentication request\n"));
|
||||||
result = false;
|
result = false;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
@ -86,7 +86,7 @@ else
|
|||||||
test_connect_fails(
|
test_connect_fails(
|
||||||
$common_connstr,
|
$common_connstr,
|
||||||
"user=md5testuser channel_binding=require",
|
"user=md5testuser channel_binding=require",
|
||||||
qr/Channel binding required but not supported by server's authentication request/,
|
qr/channel binding required but not supported by server's authentication request/,
|
||||||
"MD5 with SSL and channel_binding=require");
|
"MD5 with SSL and channel_binding=require");
|
||||||
|
|
||||||
# Now test with auth method 'cert' by connecting to 'certdb'. Should
|
# Now test with auth method 'cert' by connecting to 'certdb'. Should
|
||||||
@ -96,7 +96,7 @@ chmod 0600, "ssl/client_tmp.key";
|
|||||||
test_connect_fails(
|
test_connect_fails(
|
||||||
"sslcert=ssl/client.crt sslkey=ssl/client_tmp.key hostaddr=$SERVERHOSTADDR",
|
"sslcert=ssl/client.crt sslkey=ssl/client_tmp.key hostaddr=$SERVERHOSTADDR",
|
||||||
"dbname=certdb user=ssltestuser channel_binding=require",
|
"dbname=certdb user=ssltestuser channel_binding=require",
|
||||||
qr/Channel binding required, but server authenticated client without channel binding/,
|
qr/channel binding required, but server authenticated client without channel binding/,
|
||||||
"Cert authentication and channel_binding=require");
|
"Cert authentication and channel_binding=require");
|
||||||
|
|
||||||
done_testing($number_of_tests);
|
done_testing($number_of_tests);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user