Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6b73610

Browse files
committed
Fix advertised dispsize for libpq's sslmode connection parameter.
"8" was correct back when "disable" was the longest allowed value, butsince "verify-full" was added, it should be "12". Given the lack ofcomplaints, I wouldn't be surprised if nobody is actually using thesevalues ... but still, if they're in the API, they should be right.Noticed while pursuing a different problem. It's been wrong for quitea long time, so back-patch to all supported branches.
1 parentfae12f3 commit6b73610

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
@@ -220,7 +220,7 @@ static const PQconninfoOption PQconninfoOptions[] = {
220220
* to exclude them since none of them are mandatory.
221221
*/
222222
{"sslmode","PGSSLMODE",DefaultSSLMode,NULL,
223-
"SSL-Mode","",8},/* sizeof("disable") ==8 */
223+
"SSL-Mode","",12},/* sizeof("verify-full") ==12 */
224224

225225
{"sslcert","PGSSLCERT",NULL,NULL,
226226
"SSL-Client-Cert","",64},

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp