diff options
author | Daniel Gustafsson <dgustafsson@postgresql.org> | 2025-04-03 13:16:43 +0200 |
---|---|---|
committer | Daniel Gustafsson <dgustafsson@postgresql.org> | 2025-04-03 13:16:43 +0200 |
commit | 2da74d8d6400975bf73fb0df97c3943ad3ed9a36 (patch) | |
tree | 5f20eb74d2450a87985026348a8f406d438c1a6a /src/interfaces/libpq/libpq-int.h | |
parent | e4309f73f698851a2f7d49ca5e98e3e188400891 (diff) | |
download | postgresql-2da74d8d6400975bf73fb0df97c3943ad3ed9a36.tar.gz postgresql-2da74d8d6400975bf73fb0df97c3943ad3ed9a36.zip |
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
Diffstat (limited to 'src/interfaces/libpq/libpq-int.h')
-rw-r--r-- | src/interfaces/libpq/libpq-int.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/interfaces/libpq/libpq-int.h b/src/interfaces/libpq/libpq-int.h index 25de3e95055..9369c217fb5 100644 --- a/src/interfaces/libpq/libpq-int.h +++ b/src/interfaces/libpq/libpq-int.h @@ -426,6 +426,7 @@ struct pg_conn char *load_balance_hosts; /* load balance over hosts */ char *scram_client_key; /* base64-encoded SCRAM client key */ char *scram_server_key; /* base64-encoded SCRAM server key */ + char *sslkeylogfile; /* where should the client write ssl keylogs */ bool cancelRequest; /* true if this connection is used to send a * cancel request, instead of being a normal |