1
0
mirror of https://github.com/postgres/postgres.git synced 2025-06-26 12:21:12 +03:00

Rename PQsslAttributes() to PQsslAttributeNames(), and const-ify fully.

Per discussion, the original name was a bit misleading, and
PQsslAttributeNames() seems more apropos.  It's not quite too late to
change this in 9.5, so let's change it while we can.

Also, make sure that the pointer array is const, not only the pointed-to
strings.

Minor documentation wordsmithing while at it.

Lars Kanis, slight adjustments by me
This commit is contained in:
Tom Lane
2015-11-07 16:13:49 -05:00
parent a43b4ab111
commit 9042f58342
6 changed files with 28 additions and 24 deletions

View File

@ -1532,10 +1532,10 @@ PQsslStruct(PGconn *conn, const char *struct_name)
return NULL;
}
const char **
PQsslAttributes(PGconn *conn)
const char *const *
PQsslAttributeNames(PGconn *conn)
{
static const char *result[] = {
static const char *const result[] = {
"library",
"key_bits",
"cipher",