Add dummy versions of new SSL functions for non-SSL builds
authorAndrew Dunstan <andrew@dunslane.net>
Sun, 1 Dec 2019 22:49:43 +0000 (17:49 -0500)
committerAndrew Dunstan <andrew@dunslane.net>
Sun, 1 Dec 2019 22:49:43 +0000 (17:49 -0500)
This rectifies an oversight in commit 4dc6355210, which caused certain
builds to fail, especially on Windows.

src/interfaces/libpq/fe-secure.c

index e55b375c516e471409eb862898441c6c82f32057..994605d0be433997a1fbb5978c13a926934a6274 100644 (file)
@@ -432,6 +432,24 @@ PQsslAttributeNames(PGconn *conn)
 
    return result;
 }
+
+PQsslKeyPassHook_type
+PQgetSSLKeyPassHook(void)
+{
+   return NULL;
+}
+
+void
+PQsetSSLKeyPassHook(PQsslKeyPassHook_type hook)
+{
+   return;
+}
+
+int
+PQdefaultSSLKeyPassHook(char *buf, int size, PGconn *conn)
+{
+   return 0;
+}
 #endif                         /* USE_SSL */
 
 /* Dummy version of GSSAPI information functions, when built without GSS support */