postgres.git / summary / log / commit / refs
commit 302262d52111ce71dececfe18448792cee415a57
Author: Heikki Linnakangas <heikki.linnakangas@iki.fi>
Date: Wed Feb 04 07:13:15 2015 +0000
First released in: 9.5.0
Add dummy PQsslAttributes function for non-SSL builds.
All the other new SSL information functions had dummy versions in
be-secure.c, but I missed PQsslAttributes(). Oops. Surprisingly, the linker
did not complain about the missing function on most platforms represented in
the buildfarm, even though it is exported, except for a few Windows systems.
src/interfaces/libpq/fe-secure.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c
index b43f9fe155d..57c572bd096 100644
--- a/src/interfaces/libpq/fe-secure.c
+++ b/src/interfaces/libpq/fe-secure.c
@@ -407,6 +407,14 @@ PQsslAttribute(PGconn *conn, const char *attribute_name)
{
return NULL;
}
+
+const char **
+PQsslAttributes(PGconn *conn)
+{
+ static const char *result[] = { NULL };
+
+ return result;
+}
#endif /* USE_SSL */
[parent: 3a54f4a4944b]