mei_rt2mei_rt2_fix_1meiyap-rt1rt2
Last change
on this file since e79018b was
c469edf,
checked in by Mei <mei@…>, 13 years ago
|
1) add examples/runall
2) modified examples/DIR/rr to
use pwd instead of wired directory path
|
-
Property mode set to
100755
|
File size:
1.0 KB
|
Line | |
---|
1 | |
---|
2 | rm -rf creds_dump |
---|
3 | |
---|
4 | pwd=`pwd` |
---|
5 | |
---|
6 | #eloc=/home/mei/Deter/abac/libabac |
---|
7 | eloc=$pwd/../../libabac |
---|
8 | #keyloc=/home/mei/Deter/abac/examples/alice_rt1_typed |
---|
9 | keyloc=$pwd |
---|
10 | |
---|
11 | alice=`creddy --keyid --cert Alice_ID.pem` |
---|
12 | party=`creddy --keyid --cert Party_ID.pem` |
---|
13 | tea=`creddy --keyid --cert Tea_ID.pem` |
---|
14 | hatter=`creddy --keyid --cert Hatter_ID.pem` |
---|
15 | marchhare=`creddy --keyid --cert MarchHare_ID.pem` |
---|
16 | dormouse=`creddy --keyid --cert Dormouse_ID.pem` |
---|
17 | |
---|
18 | party_guests="[keyid:$party].role:guests" |
---|
19 | dormouse_prin="[keyid:$dormouse]" |
---|
20 | hatter_prin="[keyid:$hatter]" |
---|
21 | |
---|
22 | ## dump all credentials |
---|
23 | $eloc/abac_prover_yap --keystore $keyloc --dump creds_dump |
---|
24 | |
---|
25 | #[keyid:Party].role:guests <-?- [keyid:dormouse] yap |
---|
26 | echo " " |
---|
27 | echo "===good============ Party.guests <- dourmouse yap " |
---|
28 | $eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$dormouse_prin" |
---|
29 | |
---|
30 | #[keyid:Party].role:guests <-?- [keyid:hatter] yap |
---|
31 | #echo " " |
---|
32 | #echo "===bad============ Party.guests <- hatter yap " |
---|
33 | #$eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$hatter_prin" |
---|
Note: See
TracBrowser
for help on using the repository browser.