diff options
author | Heikki Linnakangas | 2015-02-03 17:57:52 +0000 |
---|---|---|
committer | Heikki Linnakangas | 2015-02-03 17:57:52 +0000 |
commit | 91fa7b4719ac583420d9143132ba4ccddefbc5b2 (patch) | |
tree | 63e014f91cb23165532517ffc6794afdb11a710f /src/interfaces/libpq/exports.txt | |
parent | 809d9a260b5d068a6a366273cd724bf9b396b026 (diff) |
Add API functions to libpq to interrogate SSL related stuff.
This makes it possible to query for things like the SSL version and cipher
used, without depending on OpenSSL functions or macros. That is a good
thing if we ever get another SSL implementation.
PQgetssl() still works, but it should be considered as deprecated as it
only works with OpenSSL. In particular, PQgetSslInUse() should be used to
check if a connection uses SSL, because as soon as we have another
implementation, PQgetssl() will return NULL even if SSL is in use.
Diffstat (limited to 'src/interfaces/libpq/exports.txt')
-rw-r--r-- | src/interfaces/libpq/exports.txt | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/interfaces/libpq/exports.txt b/src/interfaces/libpq/exports.txt index 93da50df311..4a21bf1d2cf 100644 --- a/src/interfaces/libpq/exports.txt +++ b/src/interfaces/libpq/exports.txt @@ -165,3 +165,7 @@ lo_lseek64 162 lo_tell64 163 lo_truncate64 164 PQconninfo 165 +PQsslInUse 166 +PQsslStruct 167 +PQsslAttributes 168 +PQsslAttribute 169 |