diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2014-03-16 21:43:43 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2014-03-16 21:43:43 -0400 |
commit | 37cb060e603133fb52d7b8eb8ff9462fc3df5cbb (patch) | |
tree | f21e7ff57835005199521b2fe07adade5416fed0 | |
parent | b5de169971e1715dc9029f79142d669311a6d001 (diff) | |
download | postgresql-37cb060e603133fb52d7b8eb8ff9462fc3df5cbb.tar.gz postgresql-37cb060e603133fb52d7b8eb8ff9462fc3df5cbb.zip |
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 7002242a1fa..b2f547a8d64 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -251,7 +251,7 @@ static const internalPQconninfoOption 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 */ offsetof(struct pg_conn, sslmode)}, {"sslcompression", "PGSSLCOMPRESSION", "1", NULL, |