Commit d5627f3c authored by Peter Eisentraut's avatar Peter Eisentraut

Fix capitalization of messages, per style guide

parent c5114e42
......@@ -426,7 +426,7 @@ pg_SASL_init(PGconn *conn, int payloadlen)
!conn->ssl_in_use)
{
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;
}
......@@ -833,13 +833,13 @@ check_expected_areq(AuthRequest areq, PGconn *conn)
if (!pg_fe_scram_channel_bound(conn->sasl_state))
{
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;
}
break;
default:
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;
break;
}
......
......@@ -86,7 +86,7 @@ else
test_connect_fails(
$common_connstr,
"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");
# Now test with auth method 'cert' by connecting to 'certdb'. Should
......@@ -96,7 +96,7 @@ chmod 0600, "ssl/client_tmp.key";
test_connect_fails(
"sslcert=ssl/client.crt sslkey=ssl/client_tmp.key hostaddr=$SERVERHOSTADDR",
"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");
done_testing($number_of_tests);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment