Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitff5d4cb

Browse files
committed
Clean up SSL compiler warnings.
1 parent603f601 commitff5d4cb

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/2604:41:55 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.15 2002/09/2605:37:58 momjian Exp $
1515
*
1616
* NOTES
1717
* The client *requires* a valid server certificate. Since
@@ -123,7 +123,9 @@
123123

124124
#ifdefUSE_SSL
125125
staticintverify_cb(intok,X509_STORE_CTX*ctx);
126+
#ifdefNOT_USED
126127
staticintverify_peer(PGconn*);
128+
#endif
127129
staticDH*load_dh_file(intkeylength);
128130
staticDH*load_dh_buffer(constchar*,size_t);
129131
staticDH*tmp_dh_cb(SSL*s,intis_export,intkeylength);
@@ -362,6 +364,7 @@ verify_cb(int ok, X509_STORE_CTX *ctx)
362364
returnok;
363365
}
364366

367+
#ifdefNOT_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
staticint
778782
open_client_SSL(PGconn*conn)
779783
{
784+
#ifdefNOT_USED
780785
intr;
786+
#endif
781787

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

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp