mei_rt2mei_rt2_fix_1
Last change
on this file since 658e7ef was
ba6027a,
checked in by Mei <mei@…>, 12 years ago
|
1) modified code all around to add support for encrypted private key for
ID credential
2) add new abac_key_t structure (abac_key.c)
3) add new keycheck option to creddy
4) add 2 new test suites
|
-
Property mode set to
100755
|
File size:
769 bytes
|
Line | |
---|
1 | #!/bin/sh |
---|
2 | |
---|
3 | rm -rf *.cn *.sha *.log |
---|
4 | rm -rf *.pem *.der |
---|
5 | cp ../../ENC_PRIVATE.PEM Acme_private.pem |
---|
6 | |
---|
7 | echo '---setup principals' |
---|
8 | env keystore=`pwd` ./setup.py |
---|
9 | |
---|
10 | echo '---setup attributes' |
---|
11 | env keystore=`pwd` ./attr.py |
---|
12 | |
---|
13 | echo '---run queries' |
---|
14 | |
---|
15 | # Make prover queries |
---|
16 | g_cmd_sha=`grep "cmd1:" query.py |sed "s/cmd1://g" ` |
---|
17 | g_cmd_cn=`grep "cmd2:" query.py |sed "s/cmd2://g" ` |
---|
18 | |
---|
19 | echo '...with sha' |
---|
20 | eval $g_cmd_sha 2>/dev/null 1 > rocket.sha |
---|
21 | |
---|
22 | echo '...with cn' |
---|
23 | eval $g_cmd_cn 1>rocket.cn 2>&1 |
---|
24 | |
---|
25 | result=`diff rocket.cn rocket.save 2>/dev/null` |
---|
26 | if [ $? -eq 0 ]; then |
---|
27 | if [ "$result" = "" ]; then |
---|
28 | echo " PASSED" |
---|
29 | else |
---|
30 | echo " ERROR:acme_rockets_rt0 python test result differs!!!" |
---|
31 | fi |
---|
32 | else |
---|
33 | echo " ERROR:acme_rockets_rt0 pythontest result differs!!!" |
---|
34 | fi |
---|
35 | |
---|
36 | |
---|
Note: See
TracBrowser
for help on using the repository browser.