@@ -205,10 +205,6 @@ static const char *show_log_file_mode(void);
205205static const char * show_data_directory_mode (void );
206206static bool check_backtrace_functions (char * * newval , void * * extra , GucSource source );
207207static 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 );
212208static bool check_recovery_target_timeline (char * * newval , void * * extra , GucSource source );
213209static void assign_recovery_target_timeline (const char * newval , void * extra );
214210static bool check_recovery_target (char * * newval , void * * extra , GucSource source );
@@ -4657,7 +4653,7 @@ static struct config_enum ConfigureNamesEnum[] =
46574653 & ssl_min_protocol_version ,
46584654 PG_TLS1_2_VERSION ,
46594655 ssl_protocol_versions_info + 1 , /* don't allow PG_TLS_ANY */
4660- check_ssl_min_protocol_version , NULL , NULL
4656+ NULL , NULL , NULL
46614657 },
46624658
46634659 {
@@ -4669,7 +4665,7 @@ static struct config_enum ConfigureNamesEnum[] =
46694665 & ssl_max_protocol_version ,
46704666 PG_TLS_ANY ,
46714667 ssl_protocol_versions_info ,
4672- check_ssl_max_protocol_version , NULL , NULL
4668+ NULL , NULL , NULL
46734669 },
46744670
46754671 /* End-of-list marker */
@@ -11642,49 +11638,6 @@ assign_backtrace_functions(const char *newval, void *extra)
1164211638 backtrace_symbol_list = (char * ) extra ;
1164311639}
1164411640
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-
1168811641static bool
1168911642check_recovery_target_timeline (char * * newval , void * * extra , GucSource source )
1169011643{
0 commit comments