mei_rt2mei_rt2_fix_1
Last change
on this file since 340bd01 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
|
Rev | Line | |
---|
[da5afdf] | 1 | |
---|
[9502c50] | 2 | # alice_rt1_typed |
---|
[da5afdf] | 3 | |
---|
[c469edf] | 4 | pwd=`pwd` |
---|
[08b8da7] | 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 |
---|
[c469edf] | 10 | keyloc=$pwd |
---|
[a9494ad] | 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 | |
---|
[da5afdf] | 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 | |
---|
[9502c50] | 26 | #[keyid:Party].role:guests <-?- [keyid:dormouse] |
---|
[a9494ad] | 27 | echo " " |
---|
[9502c50] | 28 | echo "===good============ Party.guests <- dourmouse" |
---|
[da5afdf] | 29 | $eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$dormouse_prin" |
---|
[a9494ad] | 30 | |
---|
[9502c50] | 31 | #[keyid:Party].role:guests <-?- [keyid:hatter] |
---|
[0d0c3a9] | 32 | echo " " |
---|
[9502c50] | 33 | echo "===bad============ Party.guests <- hatter" |
---|
[0d0c3a9] | 34 | $eloc/abac_prover_yap --keystore $keyloc --role "$party_guests" --principal "$hatter_prin" |
---|
[9502c50] | 35 | |
---|
Note: See
TracBrowser
for help on using the repository browser.