diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-03-16 21:43:49 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-03-16 21:43:49 -0400 |
commit | 6b736102e40dd970037a21e756696f8e22bd8e61 (patch) | |
tree | c3344c4a7ef03e6baba3ba3bef3fa6d5498c5838 | |
parent | fae12f3310aa515fda9c7659d6ce9350176fb929 (diff) |
Fix advertised dispsize for libpq's sslmode connection parameter.
"8" was correct back when "disable" was the longest allowed value, but
since "verify-full" was added, it should be "12". Given the lack of
complaints, I wouldn't be surprised if nobody is actually using these
values ... but still, if they're in the API, they should be right.
Noticed while pursuing a different problem. It's been wrong for quite
a long time, so back-patch to all supported branches.
-rw-r--r-- | src/interfaces/libpq/fe-connect.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index bd23e9d1434..448d9752003 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -220,7 +220,7 @@ static const PQconninfoOption PQconninfoOptions[] = { * to exclude them since none of them are mandatory. */ {"sslmode", "PGSSLMODE", DefaultSSLMode, NULL, - "SSL-Mode", "", 8}, /* sizeof("disable") == 8 */ + "SSL-Mode", "", 12}, /* sizeof("verify-full") == 12 */ {"sslcert", "PGSSLCERT", NULL, NULL, "SSL-Client-Cert", "", 64}, |