source: examples/creddy_prover_tests/alice_rt1/run_query @ 340bd01

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
Line 
1
2# alice_rt1_typed
3
4pwd=`pwd`
5eloc=`which abac_prover_yap | sed 's/\/abac_prover_yap//'`
6if [ "$eloc" = "" ]; then
7  echo "ERROR: abac_prover_yap is not in the search path!!!"
8  exit 1
9fi
10keyloc=$pwd
11
12alice=`creddy --keyid --cert Alice_ID.pem`
13party=`creddy --keyid --cert Party_ID.pem`
14tea=`creddy --keyid --cert Tea_ID.pem`
15hatter=`creddy --keyid --cert Hatter_ID.pem`
16marchhare=`creddy --keyid --cert MarchHare_ID.pem`
17dormouse=`creddy --keyid --cert Dormouse_ID.pem`
18
19party_guests="[keyid:$party].role:guests"
20dormouse_prin="[keyid:$dormouse]"
21hatter_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]
27echo "  "
28echo "===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]
32echo "  "
33echo "===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.