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

Commitef5842b

Browse files
committed
#ifdef out stuff that shouldn't be compiled when not USE_SSL.
Curious that gcc doesn't complain about unreferenced static variables.
1 parent3752e85 commitef5842b

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
lines changed

‎src/backend/libpq/be-secure.c

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
*
1212
*
1313
* IDENTIFICATION
14-
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.24 2003/01/08 23:34:22 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/backend/libpq/be-secure.c,v 1.25 2003/02/03 22:29:11 tgl Exp $
1515
*
1616
* Since the server static private key ($DataDir/server.key)
1717
* will normally be stored unencrypted so that the database
@@ -167,6 +167,8 @@ static SSL_CTX *SSL_context = NULL;
167167
*Protocols" (http://www.skip-vpn.org/spec/numbers.html)
168168
*for suggestions.
169169
*/
170+
#ifdefUSE_SSL
171+
170172
staticconstcharfile_dh512[]=
171173
"-----BEGIN DH PARAMETERS-----\n\
172174
MEYCQQD1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWak\n\
@@ -205,6 +207,8 @@ AaqLulO7R8Ifa1SwF2DteSGVtgWEN8gDpN3RBmmPTDngyF2DHb5qmpnznwtFKdTL\n\
205207
KWbuHn491xNO25CQWMtem80uKw+pTnisBRF/454n1Jnhub144YRBoN8CAQI=\n\
206208
-----END DH PARAMETERS-----\n";
207209

210+
#endif
211+
208212
/* ------------------------------------------------------------ */
209213
/* Procedures common to all secure sessions*/
210214
/* ------------------------------------------------------------ */

‎src/interfaces/libpq/fe-secure.c

Lines changed: 5 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.20 2003/01/08 23:18:25 momjian Exp $
14+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-secure.c,v 1.21 2003/02/03 22:33:51 tgl Exp $
1515
*
1616
* NOTES
1717
* The client *requires* a valid server certificate. Since
@@ -156,6 +156,8 @@ static SSL_CTX *SSL_context = NULL;
156156
*It's not critical that users have EPH keys, but it doesn't
157157
*hurt and if it's missing someone will demand it, so....
158158
*/
159+
#ifdefUSE_SSL
160+
159161
staticconstcharfile_dh512[]=
160162
"-----BEGIN DH PARAMETERS-----\n\
161163
MEYCQQD1Kv884bEpQBgRjXyEpwpy1obEAxnIByl6ypUM2Zafq9AKUJsCRtMIPWak\n\
@@ -194,6 +196,8 @@ AaqLulO7R8Ifa1SwF2DteSGVtgWEN8gDpN3RBmmPTDngyF2DHb5qmpnznwtFKdTL\n\
194196
KWbuHn491xNO25CQWMtem80uKw+pTnisBRF/454n1Jnhub144YRBoN8CAQI=\n\
195197
-----END DH PARAMETERS-----\n";
196198

199+
#endif
200+
197201
/* ------------------------------------------------------------ */
198202
/* Procedures common to all secure sessions*/
199203
/* ------------------------------------------------------------ */

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp