mirror of
https://github.com/postgres/postgres.git
synced 2025-11-15 03:41:20 +03:00
libpq: Add support for dumping SSL key material to file
This adds a new connection parameter which instructs libpq to write out keymaterial clientside into a file in order to make connection debugging with Wireshark and similar tools possible. The file format used is the standardized NSS format. Author: Abhishek Chanda <abhishek.becs@gmail.com> Co-authored-by: Daniel Gustafsson <daniel@yesql.se> Reviewed-by: Jacob Champion <jacob.champion@enterprisedb.com> Discussion: https://postgr.es/m/CAKiP-K85C8uQbzXKWf5wHQPkuygGUGcufke713iHmYWOe9q2dA@mail.gmail.com
This commit is contained in:
@@ -401,6 +401,10 @@ static const internalPQconninfoOption PQconninfoOptions[] = {
|
||||
"OAuth-Scope", "", 15,
|
||||
offsetof(struct pg_conn, oauth_scope)},
|
||||
|
||||
{"sslkeylogfile", NULL, NULL, NULL,
|
||||
"SSL-Key-Log-File", "", 0, /* sizeof("") = 0 */
|
||||
offsetof(struct pg_conn, sslkeylogfile)},
|
||||
|
||||
/* Terminating entry --- MUST BE LAST */
|
||||
{NULL, NULL, NULL, NULL,
|
||||
NULL, NULL, 0}
|
||||
|
||||
Reference in New Issue
Block a user