From 2970c75dd9824a0eeb1d1aeb5a42f59d5c9904d8 Mon Sep 17 00:00:00 2001 From: Daniel Gustafsson Date: Sun, 13 Apr 2025 21:52:29 +0200 Subject: [PATCH] Mark sslkeylogfile as Debug option Mark the sslkeylogile option as "D" debug as this truly is a debug option, and it will allow postgres_fdw et.al to filter it out as well. Also update the display length to match that for an ssl key as they are both filename based inputs. Author: Daniel Gustafsson Reported-by: Jacob Champion Discussion: https://postgr.es/m/CAOYmi+=5GyBKpu7bU4D_xkAnYJTj=rMzGaUvHO99-DpNG_YKcw@mail.gmail.com --- src/interfaces/libpq/fe-connect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c index 0258d9ace3c..bd86de53c67 100644 --- a/src/interfaces/libpq/fe-connect.c +++ b/src/interfaces/libpq/fe-connect.c @@ -402,7 +402,7 @@ static const internalPQconninfoOption PQconninfoOptions[] = { offsetof(struct pg_conn, oauth_scope)}, {"sslkeylogfile", NULL, NULL, NULL, - "SSL-Key-Log-File", "", 0, /* sizeof("") = 0 */ + "SSL-Key-Log-File", "D", 64, offsetof(struct pg_conn, sslkeylogfile)}, /* Terminating entry --- MUST BE LAST */