source: examples/creddy_prover_tests/alice_rt1/run_query @ 2be9809

mei_rt2mei_rt2_fix_1
Last change on this file since 2be9809 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
RevLine 
[da5afdf]1
[9502c50]2# alice_rt1_typed
[da5afdf]3
[c469edf]4pwd=`pwd`
[08b8da7]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
[c469edf]10keyloc=$pwd
[a9494ad]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
[da5afdf]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
[9502c50]26#[keyid:Party].role:guests <-?- [keyid:dormouse]
[a9494ad]27echo "  "
[9502c50]28echo "===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]32echo "  "
[9502c50]33echo "===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.