Skip to content

Commit ff5d4cb

Browse files
committed
Clean up SSL compiler warnings.
1 parent 603f601 commit ff5d4cb

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/interfaces/libpq/fe-secure.c

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.14 2002/09/26 04:41:55 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.15 2002/09/26 05:37:58 momjian Exp $
1515
*
1616
* NOTES
1717
* The client *requires* a valid server certificate. Since
@@ -123,7 +123,9 @@
123123

124124
#ifdef USE_SSL
125125
static int verify_cb(int ok, X509_STORE_CTX *ctx);
126+
#ifdef NOT_USED
126127
static int verify_peer(PGconn *);
128+
#endif
127129
static DH *load_dh_file(int keylength);
128130
static DH *load_dh_buffer(const char *, size_t);
129131
static DH *tmp_dh_cb(SSL *s, int is_export, int keylength);
@@ -362,6 +364,7 @@ verify_cb(int ok, X509_STORE_CTX *ctx)
362364
return ok;
363365
}
364366

367+
#ifdef NOT_USED
365368
/*
366369
* Verify that common name resolves to peer.
367370
* This function is not thread-safe due to gethostbyname().
@@ -448,6 +451,7 @@ verify_peer(PGconn *conn)
448451

449452
return -1;
450453
}
454+
#endif
451455

452456
/*
453457
* Load precomputed DH parameters.
@@ -777,7 +781,9 @@ destroy_SSL(void)
777781
static int
778782
open_client_SSL(PGconn *conn)
779783
{
784+
#ifdef NOT_USED
780785
int r;
786+
#endif
781787

782788
if (!(conn->ssl = SSL_new(SSL_context)) ||
783789
!SSL_set_app_data(conn->ssl, conn) ||

0 commit comments

Comments
 (0)