Skip to content

Commit fecc9e2

Browse files
committed
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.
1 parent 6655155 commit fecc9e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,7 @@ static const PQconninfoOption PQconninfoOptions[] = {
215215
* to exclude them since none of them are mandatory.
216216
*/
217217
{"sslmode", "PGSSLMODE", DefaultSSLMode, NULL,
218-
"SSL-Mode", "", 8}, /* sizeof("disable") == 8 */
218+
"SSL-Mode", "", 12}, /* sizeof("verify-full") == 12 */
219219

220220
{"sslcert", "PGSSLCERT", NULL, NULL,
221221
"SSL-Client-Cert", "", 64},

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