@@ -201,10 +201,6 @@ static bool check_cluster_name(char **newval, void **extra, GucSource source);
201
201
static const char * show_unix_socket_permissions (void );
202
202
static const char * show_log_file_mode (void );
203
203
static const char * show_data_directory_mode (void );
204
- static bool check_ssl_min_protocol_version (int * newval , void * * extra ,
205
- GucSource source );
206
- static bool check_ssl_max_protocol_version (int * newval , void * * extra ,
207
- GucSource source );
208
204
static bool check_recovery_target_timeline (char * * newval , void * * extra , GucSource source );
209
205
static void assign_recovery_target_timeline (const char * newval , void * extra );
210
206
static bool check_recovery_target (char * * newval , void * * extra , GucSource source );
@@ -4526,7 +4522,7 @@ static struct config_enum ConfigureNamesEnum[] =
4526
4522
& ssl_min_protocol_version ,
4527
4523
PG_TLS1_VERSION ,
4528
4524
ssl_protocol_versions_info + 1 , /* don't allow PG_TLS_ANY */
4529
- check_ssl_min_protocol_version , NULL , NULL
4525
+ NULL , NULL , NULL
4530
4526
},
4531
4527
4532
4528
{
@@ -4538,7 +4534,7 @@ static struct config_enum ConfigureNamesEnum[] =
4538
4534
& ssl_max_protocol_version ,
4539
4535
PG_TLS_ANY ,
4540
4536
ssl_protocol_versions_info ,
4541
- check_ssl_max_protocol_version , NULL , NULL
4537
+ NULL , NULL , NULL
4542
4538
},
4543
4539
4544
4540
/* End-of-list marker */
@@ -11442,49 +11438,6 @@ show_data_directory_mode(void)
11442
11438
return buf ;
11443
11439
}
11444
11440
11445
- static bool
11446
- check_ssl_min_protocol_version (int * newval , void * * extra , GucSource source )
11447
- {
11448
- int new_ssl_min_protocol_version = * newval ;
11449
-
11450
- /* PG_TLS_ANY is not supported for the minimum bound */
11451
- Assert (new_ssl_min_protocol_version > PG_TLS_ANY );
11452
-
11453
- if (ssl_max_protocol_version &&
11454
- new_ssl_min_protocol_version > ssl_max_protocol_version )
11455
- {
11456
- GUC_check_errhint ("\"%s\" cannot be higher than \"%s\"." ,
11457
- "ssl_min_protocol_version" ,
11458
- "ssl_max_protocol_version" );
11459
- GUC_check_errcode (ERRCODE_INVALID_PARAMETER_VALUE );
11460
- return false;
11461
- }
11462
-
11463
- return true;
11464
- }
11465
-
11466
- static bool
11467
- check_ssl_max_protocol_version (int * newval , void * * extra , GucSource source )
11468
- {
11469
- int new_ssl_max_protocol_version = * newval ;
11470
-
11471
- /* if PG_TLS_ANY, there is no need to check the bounds */
11472
- if (new_ssl_max_protocol_version == PG_TLS_ANY )
11473
- return true;
11474
-
11475
- if (ssl_min_protocol_version &&
11476
- ssl_min_protocol_version > new_ssl_max_protocol_version )
11477
- {
11478
- GUC_check_errhint ("\"%s\" cannot be lower than \"%s\"." ,
11479
- "ssl_max_protocol_version" ,
11480
- "ssl_min_protocol_version" );
11481
- GUC_check_errcode (ERRCODE_INVALID_PARAMETER_VALUE );
11482
- return false;
11483
- }
11484
-
11485
- return true;
11486
- }
11487
-
11488
11441
static bool
11489
11442
check_recovery_target_timeline (char * * newval , void * * extra , GucSource source )
11490
11443
{
0 commit comments