aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2002-09-26 05:37:58 +0000
committerBruce Momjian <bruce@momjian.us>2002-09-26 05:37:58 +0000
commitff5d4cbfca00da3be83268ae72c90da3b3055cf2 (patch)
treef8ca043eae1f88dd2a5af77754ff73f936f8a135 /src
parent603f601269ebba85477ea5fbd16f8295da585625 (diff)
downloadpostgresql-ff5d4cbfca00da3be83268ae72c90da3b3055cf2.tar.gz
postgresql-ff5d4cbfca00da3be83268ae72c90da3b3055cf2.zip
Clean up SSL compiler warnings.
Diffstat (limited to 'src')
-rw-r--r--src/interfaces/libpq/fe-secure.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/interfaces/libpq/fe-secure.c b/src/interfaces/libpq/fe-secure.c
index 545a19ca3c8..07a9f3af145 100644
--- a/src/interfaces/libpq/fe-secure.c
+++ b/src/interfaces/libpq/fe-secure.c
@@ -11,7 +11,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.14 2002/09/26 04:41:55 momjian Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.15 2002/09/26 05:37:58 momjian Exp $
*
* NOTES
* The client *requires* a valid server certificate. Since
@@ -123,7 +123,9 @@
#ifdef USE_SSL
static int verify_cb(int ok, X509_STORE_CTX *ctx);
+#ifdef NOT_USED
static int verify_peer(PGconn *);
+#endif
static DH *load_dh_file(int keylength);
static DH *load_dh_buffer(const char *, size_t);
static DH *tmp_dh_cb(SSL *s, int is_export, int keylength);
@@ -362,6 +364,7 @@ verify_cb(int ok, X509_STORE_CTX *ctx)
return ok;
}
+#ifdef NOT_USED
/*
* Verify that common name resolves to peer.
* This function is not thread-safe due to gethostbyname().
@@ -448,6 +451,7 @@ verify_peer(PGconn *conn)
return -1;
}
+#endif
/*
* Load precomputed DH parameters.
@@ -777,7 +781,9 @@ destroy_SSL(void)
static int
open_client_SSL(PGconn *conn)
{
+#ifdef NOT_USED
int r;
+#endif
if (!(conn->ssl = SSL_new(SSL_context)) ||
!SSL_set_app_data(conn->ssl, conn) ||