Skip to content

Commit

Permalink
[CBRD-24640] Specify the upper and lower bounds of the tde_default_al…
Browse files Browse the repository at this point in the history
…gorithm parameter. (CUBRID#4083)

http://jira.cubrid.org/browse/CBRD-24640

Purpose

The limits have been added to prevent the value changes of tde_default_algorithm parameter to a value other than TDE_ALGORITHM (TDE_ALGORITHM_NONE, TDE_ALGORITHM_AES, TDE_ALGORITHM_ARIA).
Below is an enumeration of TDE_ALGORITHM.
  • Loading branch information
hyahong authored Feb 7, 2023
1 parent d93f4b1 commit 39c427c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/base/system_parameter.c
Original file line number Diff line number Diff line change
Expand Up @@ -2213,7 +2213,9 @@ static bool prm_heap_info_cache_logging_default = false;
static unsigned int prm_heap_info_cache_logging_flag = 0;

int PRM_TDE_DEFAULT_ALGORITHM = TDE_ALGORITHM_AES;
static int prm_tde_default_algorithm = TDE_ALGORITHM_AES;
static int prm_tde_algorithm_default = TDE_ALGORITHM_AES;
static int prm_tde_algorithm_upper = TDE_ALGORITHM_ARIA;
static int prm_tde_algorithm_lower = TDE_ALGORITHM_NONE;
static unsigned int prm_tde_default_algorithm_flag = 0;

int PRM_ER_LOG_TDE = false;
Expand Down Expand Up @@ -5886,9 +5888,9 @@ SYSPRM_PARAM prm_Def[] = {
(PRM_FOR_CLIENT | PRM_FOR_SERVER),
PRM_KEYWORD,
&prm_tde_default_algorithm_flag,
(void *) &prm_tde_default_algorithm,
(void *) &prm_tde_algorithm_default,
(void *) &PRM_TDE_DEFAULT_ALGORITHM,
(void *) NULL, (void *) NULL,
(void *) &prm_tde_algorithm_upper, (void *) &prm_tde_algorithm_lower,
(char *) NULL,
(DUP_PRM_FUNC) NULL,
(DUP_PRM_FUNC) NULL},
Expand Down

0 comments on commit 39c427c

Please sign in to comment.