Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
Practical-Cryptdb
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Zhaozhen
Practical-Cryptdb
Commits
c7ca6705
Commit
c7ca6705
authored
Jan 11, 2018
by
yiwenshao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
finally able to use conf to configure the onionlayout
parent
14aa33e4
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
13 additions
and
12 deletions
+13
-12
CURRENT.conf
conf/CURRENT.conf
+7
-6
rewrite_main.cc
main/rewrite_main.cc
+2
-2
schema.cc
main/schema.cc
+4
-4
No files found.
conf/CURRENT.conf
View file @
c7ca6705
...
...
@@ -3,15 +3,16 @@
#oAGG: HOM
#oASHE: ASHE
[
onions
for
num
]
oDET
:
DETJOIN
DET
RND
oOPE
:
OPEFOREIGN
OPE
RND
oAGG
:
HOM
#oDET: DETJOIN DET RND
#oOPE: OPEFOREIGN OPE RND
#oAGG: HOM
oASHE
:
ASHE
[
end
]
#oSWP: SEARCH
#oDET: DETJOIN DET RND
#oOPE: OPEFOREIGN OPE RND
[
onions
for
str
]
oDET
:
DETJOIN
DET
RND
oOPE
:
OPEFOREIGN
OPE
RND
#
oSWP: SEARCH
#
oDET: DETJOIN DET RND
#
oOPE: OPEFOREIGN OPE RND
oSWP
:
SEARCH
main/rewrite_main.cc
View file @
c7ca6705
...
...
@@ -742,12 +742,12 @@ buildTypeTextTranslator(){
const
std
::
vector
<
std
::
string
>
onion_layout_strings
{
"PLAIN_ONION_LAYOUT"
,
"NUM_ONION_LAYOUT"
,
"BEST_EFFORT_NUM_ONION_LAYOUT"
,
"STR_ONION_LAYOUT"
,
"BEST_EFFORT_STR_ONION_LAYOUT"
"BEST_EFFORT_STR_ONION_LAYOUT"
,
"CURRENT_NUM_LAYOUT"
,
"CURRENT_STR_LAYOUT"
};
const
std
::
vector
<
onionlayout
>
onion_layouts
{
PLAIN_ONION_LAYOUT
,
NUM_ONION_LAYOUT
,
BEST_EFFORT_NUM_ONION_LAYOUT
,
STR_ONION_LAYOUT
,
BEST_EFFORT_STR_ONION_LAYOUT
BEST_EFFORT_STR_ONION_LAYOUT
,
CURRENT_NUM_LAYOUT
,
CURRENT_STR_LAYOUT
};
RETURN_FALSE_IF_FALSE
(
onion_layout_strings
.
size
()
==
onion_layouts
.
size
());
...
...
main/schema.cc
View file @
c7ca6705
...
...
@@ -431,17 +431,17 @@ onionlayout FieldMeta::determineOnionLayout(const AES_KEY *const m_key,
/*we only support sensitive rating here*/
if
(
SECURITY_RATING
::
SENSITIVE
==
sec_rating
)
{
if
(
true
==
isMySQLTypeNumeric
(
f
))
{
//
return CURRENT_NUM_LAYOUT;
return
CURRENT_NUM_LAYOUT
;
//is_onionlayout_equal(CURRENT_NUM_LAYOUT,NUM_ONION_LAYOUT);
//is_onionlayout_equal(NUM_ONION_LAYOUT, CURRENT_NUM_LAYOUT);
// return CURRENT_NUM_LAYOUT;
return
NUM_ONION_LAYOUT
;
//
return NUM_ONION_LAYOUT;
}
else
{
//
return CURRENT_STR_LAYOUT;
return
CURRENT_STR_LAYOUT
;
//is_onionlayout_equal(CURRENT_STR_LAYOUT,STR_ONION_LAYOUT);
//is_onionlayout_equal(STR_ONION_LAYOUT,CURRENT_STR_LAYOUT);
// return CURRENT_STR_LAYOUT;
return
STR_ONION_LAYOUT
;
//
return STR_ONION_LAYOUT;
}
}
else
if
(
SECURITY_RATING
::
BEST_EFFORT
==
sec_rating
)
{
if
(
true
==
isMySQLTypeNumeric
(
f
))
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment