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

Commit8105300

Browse files
committed
Disallow setting ssl = on if SSL is not compiled in.
1 parentedafb4f commit8105300

File tree

1 file changed

+15
-2
lines changed
  • src/backend/utils/misc

1 file changed

+15
-2
lines changed

‎src/backend/utils/misc/guc.c

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
* Written by Peter Eisentraut <peter_e@gmx.net>.
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.304 2005/12/28 16:38:38 tgl Exp $
13+
* $PostgreSQL: pgsql/src/backend/utils/misc/guc.c,v 1.305 2005/12/30 00:13:50 petere Exp $
1414
*
1515
*--------------------------------------------------------------------
1616
*/
@@ -130,6 +130,7 @@ static const char *show_num_temp_buffers(void);
130130
staticboolassign_phony_autocommit(boolnewval,booldoit,GucSourcesource);
131131
staticconstchar*assign_custom_variable_classes(constchar*newval,booldoit,
132132
GucSourcesource);
133+
staticboolassign_ssl(boolnewval,booldoit,GucSourcesource);
133134
staticboolassign_stage_log_stats(boolnewval,booldoit,GucSourcesource);
134135
staticboolassign_log_stats(boolnewval,booldoit,GucSourcesource);
135136
staticboolassign_transaction_read_only(boolnewval,booldoit,GucSourcesource);
@@ -496,7 +497,7 @@ static struct config_bool ConfigureNamesBool[] =
496497
NULL
497498
},
498499
&EnableSSL,
499-
false,NULL,NULL
500+
false,assign_ssl,NULL
500501
},
501502
{
502503
{"fsync",PGC_SIGHUP,WAL_SETTINGS,
@@ -5864,6 +5865,18 @@ assign_custom_variable_classes(const char *newval, bool doit, GucSource source)
58645865
returnnewval;
58655866
}
58665867

5868+
staticbool
5869+
assign_ssl(boolnewval,booldoit,GucSourcesource)
5870+
{
5871+
#ifndefUSE_SSL
5872+
if (newval)
5873+
ereport(ERROR,
5874+
(errcode(ERRCODE_INVALID_PARAMETER_VALUE),
5875+
errmsg("SSL is not supported by this build")));
5876+
#endif
5877+
return true;
5878+
}
5879+
58675880
staticbool
58685881
assign_stage_log_stats(boolnewval,booldoit,GucSourcesource)
58695882
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp