Skip to content

Commit 20d6293

Browse files
committed
Add missing newlines to some SSL-related error messages. Noted while testing.
1 parent b486e7f commit 20d6293

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/interfaces/libpq/fe-secure.c

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.132 2010/02/26 02:01:33 momjian Exp $
14+
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.133 2010/05/25 22:03:27 tgl Exp $
1515
*
1616
* NOTES
1717
*
@@ -600,7 +600,7 @@ verify_peer_name_matches_certificate(PGconn *conn)
600600
if (conn->pghostaddr)
601601
{
602602
printfPQExpBuffer(&conn->errorMessage,
603-
libpq_gettext("verified SSL connections are only supported when connecting to a host name"));
603+
libpq_gettext("verified SSL connections are only supported when connecting to a host name\n"));
604604
return false;
605605
}
606606
else
@@ -619,7 +619,7 @@ verify_peer_name_matches_certificate(PGconn *conn)
619619
else
620620
{
621621
printfPQExpBuffer(&conn->errorMessage,
622-
libpq_gettext("server common name \"%s\" does not match host name \"%s\""),
622+
libpq_gettext("server common name \"%s\" does not match host name \"%s\"\n"),
623623
conn->peer_cn, conn->pghost);
624624
return false;
625625
}
@@ -661,7 +661,7 @@ client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
661661
if (!pqGetHomeDirectory(homedir, sizeof(homedir)))
662662
{
663663
printfPQExpBuffer(&conn->errorMessage,
664-
libpq_gettext("could not get home directory to locate client certificate files"));
664+
libpq_gettext("could not get home directory to locate client certificate files\n"));
665665
return 0;
666666
}
667667
}
@@ -1091,7 +1091,7 @@ initialize_SSL(PGconn *conn)
10911091
* "verify-full" */
10921092
{
10931093
printfPQExpBuffer(&conn->errorMessage,
1094-
libpq_gettext("could not get home directory to locate root certificate file"));
1094+
libpq_gettext("could not get home directory to locate root certificate file\n"));
10951095
return -1;
10961096
}
10971097
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy