Add libpq error message text on how to handle missing root.crt file.

This commit is contained in:
Bruce Momjian 2009-04-14 17:30:16 +00:00
parent bda9dc7e19
commit 418fd59663

View File

@ -11,7 +11,7 @@
* *
* *
* IDENTIFICATION * IDENTIFICATION
* $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.122 2009/03/31 01:41:27 tgl Exp $ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-secure.c,v 1.123 2009/04/14 17:30:16 momjian Exp $
* *
* NOTES * NOTES
* *
@ -1067,7 +1067,8 @@ initialize_SSL(PGconn *conn)
if (strcmp(conn->sslverify, "none") != 0) if (strcmp(conn->sslverify, "none") != 0)
{ {
printfPQExpBuffer(&conn->errorMessage, printfPQExpBuffer(&conn->errorMessage,
libpq_gettext("root certificate file \"%s\" does not exist"), fnbuf); libpq_gettext("root certificate file \"%s\" does not exist\n"
"Either supply the file or set sslverify to \"none\" to disable server certificate verification.\n"), fnbuf);
return -1; return -1;
} }
} }