summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-secure.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/interfaces/libpq/fe-secure.c')
-rw-r--r--src/interfaces/libpq/fe-secure.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c
index ec6c65a4b49..cfb77f6d85f 100644
--- a/src/interfaces/libpq/fe-secure.c
+++ b/src/interfaces/libpq/fe-secure.c
@@ -129,6 +129,14 @@ struct sigpipe_info
/* ------------------------------------------------------------ */
+int
+PQsslInUse(PGconn *conn)
+{
+ if (!conn)
+ return 0;
+ return conn->ssl_in_use;
+}
+
/*
* Exported function to allow application to tell us it's already
* initialized OpenSSL.
@@ -384,12 +392,6 @@ retry_masked:
/* Dummy versions of SSL info functions, when built without SSL support */
#ifndef USE_SSL
-int
-PQsslInUse(PGconn *conn)
-{
- return 0;
-}
-
void *
PQgetssl(PGconn *conn)
{