@@ -205,10 +205,6 @@ static const char *show_log_file_mode(void);
205
205
static const char * show_data_directory_mode (void );
206
206
static bool check_backtrace_functions (char * * newval , void * * extra , GucSource source );
207
207
static void assign_backtrace_functions (const char * newval , void * extra );
208
- static bool check_ssl_min_protocol_version (int * newval , void * * extra ,
209
- GucSource source );
210
- static bool check_ssl_max_protocol_version (int * newval , void * * extra ,
211
- GucSource source );
212
208
static bool check_recovery_target_timeline (char * * newval , void * * extra , GucSource source );
213
209
static void assign_recovery_target_timeline (const char * newval , void * extra );
214
210
static bool check_recovery_target (char * * newval , void * * extra , GucSource source );
@@ -4657,7 +4653,7 @@ static struct config_enum ConfigureNamesEnum[] =
4657
4653
& ssl_min_protocol_version ,
4658
4654
PG_TLS1_2_VERSION ,
4659
4655
ssl_protocol_versions_info + 1 , /* don't allow PG_TLS_ANY */
4660
- check_ssl_min_protocol_version , NULL , NULL
4656
+ NULL , NULL , NULL
4661
4657
},
4662
4658
4663
4659
{
@@ -4669,7 +4665,7 @@ static struct config_enum ConfigureNamesEnum[] =
4669
4665
& ssl_max_protocol_version ,
4670
4666
PG_TLS_ANY ,
4671
4667
ssl_protocol_versions_info ,
4672
- check_ssl_max_protocol_version , NULL , NULL
4668
+ NULL , NULL , NULL
4673
4669
},
4674
4670
4675
4671
/* End-of-list marker */
@@ -11642,49 +11638,6 @@ assign_backtrace_functions(const char *newval, void *extra)
11642
11638
backtrace_symbol_list = (char * ) extra ;
11643
11639
}
11644
11640
11645
- static bool
11646
- check_ssl_min_protocol_version (int * newval , void * * extra , GucSource source )
11647
- {
11648
- int new_ssl_min_protocol_version = * newval ;
11649
-
11650
- /* PG_TLS_ANY is not supported for the minimum bound */
11651
- Assert (new_ssl_min_protocol_version > PG_TLS_ANY );
11652
-
11653
- if (ssl_max_protocol_version &&
11654
- new_ssl_min_protocol_version > ssl_max_protocol_version )
11655
- {
11656
- GUC_check_errhint ("\"%s\" cannot be higher than \"%s\"." ,
11657
- "ssl_min_protocol_version" ,
11658
- "ssl_max_protocol_version" );
11659
- GUC_check_errcode (ERRCODE_INVALID_PARAMETER_VALUE );
11660
- return false;
11661
- }
11662
-
11663
- return true;
11664
- }
11665
-
11666
- static bool
11667
- check_ssl_max_protocol_version (int * newval , void * * extra , GucSource source )
11668
- {
11669
- int new_ssl_max_protocol_version = * newval ;
11670
-
11671
- /* if PG_TLS_ANY, there is no need to check the bounds */
11672
- if (new_ssl_max_protocol_version == PG_TLS_ANY )
11673
- return true;
11674
-
11675
- if (ssl_min_protocol_version &&
11676
- ssl_min_protocol_version > new_ssl_max_protocol_version )
11677
- {
11678
- GUC_check_errhint ("\"%s\" cannot be lower than \"%s\"." ,
11679
- "ssl_max_protocol_version" ,
11680
- "ssl_min_protocol_version" );
11681
- GUC_check_errcode (ERRCODE_INVALID_PARAMETER_VALUE );
11682
- return false;
11683
- }
11684
-
11685
- return true;
11686
- }
11687
-
11688
11641
static bool
11689
11642
check_recovery_target_timeline (char * * newval , void * * extra , GucSource source )
11690
11643
{
0 commit comments