mei_rt2mei_rt2_fix_1
Last change
on this file since 8de54ab was
08b8da7,
checked in by Mei <mei@…>, 12 years ago
|
1) rework examples directory with Makefile
2) update scaling with plotting scripts
3) add more doc in there
|
-
Property mode set to
100755
|
File size:
1.0 KB
|
Line | |
---|
1 | |
---|
2 | # alice_rt1_typed |
---|
3 | |
---|
4 | pwd=`pwd` |
---|
5 | eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'` |
---|
6 | if [ "$eloc" = "" ]; then |
---|
7 | echo "ERROR: abac_prover_yap is not in the search path!!!" |
---|
8 | exit 1 |
---|
9 | fi |
---|
10 | keyloc=$pwd |
---|
11 | |
---|
12 | alice=`creddy --keyid --cert Alice_ID.pem` |
---|
13 | party=`creddy --keyid --cert Party_ID.pem` |
---|
14 | tea=`creddy --keyid --cert Tea_ID.pem` |
---|
15 | hatter=`creddy --keyid --cert Hatter_ID.pem` |
---|
16 | marchhare=`creddy --keyid --cert MarchHare_ID.pem` |
---|
17 | dormouse=`creddy --keyid --cert Dormouse_ID.pem` |
---|
18 | |
---|
19 | party_guests="[keyid:$party].role:guests" |
---|
20 | dormouse_prin="[keyid:$dormouse]" |
---|
21 | hatter_prin="[keyid:$hatter]" |
---|
22 | |
---|
23 | ## dump all credentials |
---|
24 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
25 | |
---|
26 | #[keyid:Party].role:guests <-?- [keyid:dormouse] |
---|
27 | echo " " |
---|
28 | echo "===good============ Party.guests <- dourmouse" |
---|
29 | $eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$dormouse_prin" |
---|
30 | |
---|
31 | #[keyid:Party].role:guests <-?- [keyid:hatter] |
---|
32 | echo " " |
---|
33 | echo "===bad============ Party.guests <- hatter" |
---|
34 | $eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$hatter_prin" |
---|
35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.