aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-secure-openssl.c
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2018-01-19 10:17:56 -0500
committerPeter Eisentraut <peter_e@gmx.net>2018-01-23 07:11:39 -0500
commit1c2183403b958422c27782329ba19f9a3e0874ba (patch)
tree7a75d8a167ceddbe15d6bf823cbd95dcfe8f8d48 /src/interfaces/libpq/fe-secure-openssl.c
parentf966101d19fcef6441e43da417467b3ed5ad3074 (diff)
downloadpostgresql-1c2183403b958422c27782329ba19f9a3e0874ba.tar.gz
postgresql-1c2183403b958422c27782329ba19f9a3e0874ba.zip
Extract common bits from OpenSSL implementation
Some things in be-secure-openssl.c and fe-secure-openssl.c were not actually specific to OpenSSL but could also be used by other implementations. In order to avoid copy-and-pasting, move some of that code to common files.
Diffstat (limited to 'src/interfaces/libpq/fe-secure-openssl.c')
-rw-r--r--src/interfaces/libpq/fe-secure-openssl.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/interfaces/libpq/fe-secure-openssl.c b/src/interfaces/libpq/fe-secure-openssl.c
index eb131209412..9ab317320a2 100644
--- a/src/interfaces/libpq/fe-secure-openssl.c
+++ b/src/interfaces/libpq/fe-secure-openssl.c
@@ -1547,14 +1547,6 @@ SSLerrfree(char *buf)
/* SSL information functions */
/* ------------------------------------------------------------ */
-int
-PQsslInUse(PGconn *conn)
-{
- if (!conn)
- return 0;
- return conn->ssl_in_use;
-}
-
/*
* Return pointer to OpenSSL object.
*/