File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 11
11
*
12
12
*
13
13
* 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 $
15
15
*
16
16
* NOTES
17
17
* The client *requires* a valid server certificate. Since
123
123
124
124
#ifdef USE_SSL
125
125
static int verify_cb (int ok , X509_STORE_CTX * ctx );
126
+ #ifdef NOT_USED
126
127
static int verify_peer (PGconn * );
128
+ #endif
127
129
static DH * load_dh_file (int keylength );
128
130
static DH * load_dh_buffer (const char * , size_t );
129
131
static DH * tmp_dh_cb (SSL * s , int is_export , int keylength );
@@ -362,6 +364,7 @@ verify_cb(int ok, X509_STORE_CTX *ctx)
362
364
return ok ;
363
365
}
364
366
367
+ #ifdef NOT_USED
365
368
/*
366
369
* Verify that common name resolves to peer.
367
370
* This function is not thread-safe due to gethostbyname().
@@ -448,6 +451,7 @@ verify_peer(PGconn *conn)
448
451
449
452
return -1 ;
450
453
}
454
+ #endif
451
455
452
456
/*
453
457
* Load precomputed DH parameters.
@@ -777,7 +781,9 @@ destroy_SSL(void)
777
781
static int
778
782
open_client_SSL (PGconn * conn )
779
783
{
784
+ #ifdef NOT_USED
780
785
int r ;
786
+ #endif
781
787
782
788
if (!(conn -> ssl = SSL_new (SSL_context )) ||
783
789
!SSL_set_app_data (conn -> ssl , conn ) ||
You can’t perform that action at this time.
0 commit comments