summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_own.sh
diff options
context:
space:
mode:
Diffstat (limited to 'src/credential/test_credential_own.sh')
-rwxr-xr-xsrc/credential/test_credential_own.sh34
1 files changed, 19 insertions, 15 deletions
diff --git a/src/credential/test_credential_own.sh b/src/credential/test_credential_own.sh
index a5f567511..d10d1b2ea 100755
--- a/src/credential/test_credential_own.sh
+++ b/src/credential/test_credential_own.sh
@@ -43,24 +43,28 @@ REG_STUD_ATTR="student"
43END_ATTR="end" 43END_ATTR="end"
44 44
45TEST_CREDENTIAL="mygnunetcreds" 45TEST_CREDENTIAL="mygnunetcreds"
46# Test for forward search (0) StateU.student -> EOrg.end 46# Own issuer side storage:
47# gnunet-namestore -p -z eorg -a -n "@" -t DEL -V "$STATEU_KEY $STATE_STUD_ATTR <- $EORG_KEY $END_ATTR" -e 60m -c test_credential_lookup.conf 47gnunet-credential --createIssuerSide --ego=epub --attribute="issside" --subject="$EORG_KEY asd" --ttl=5m
48# gnunet-namestore -D -z eorg 48
49 49gnunet-namestore -D -z epub
50# Alternative Format that is being implemented at the moment: 50
51# Issuerside: 51# Own subject side storage:
52# gnunet-credential --create --ego=A --attribute="a" --subject="B.b" --where="is" 52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY" --ttl=5m`
53 gnunet-credential --createIssuerSide --ego=epub --attribute="aasds" --subject="$EORG_KEY basd" --ttl=60m 53gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED"
54 SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="asd" --subject="$EORG_KEY basd" --ttl=60m` 54
55 echo $SIGNED 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno" --ttl=5m`
56 gnunet-credential --createSubjectSide --extension "$SIGNED" 56gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED"
57# Subjectside: 57
58# X = gnunet-credential --create -e E -a "a" -s "B.b" -w ss 58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd" --subject="$EORG_KEY efghijklmno.pqr" --ttl=5m`
59# gnunet-credential --add -e E -x X 59gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED"
60
61SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=epub --attribute="abcd.stu" --subject="$EORG_KEY efghijklmno.pqr" --ttl=5m`
62gnunet-credential --createSubjectSide --ego=eorg --extension "$SIGNED"
63
64gnunet-namestore -D -z eorg
60 65
61# (1) EPub assigns the attribute "discount" to all entities that have been assigned "preferred" by EOrg 66# (1) EPub assigns the attribute "discount" to all entities that have been assigned "preferred" by EOrg
62gnunet-namestore -p -z epub -a -n $DISC_ATTR -t ATTR -V "$EORG_KEY $PREF_ATTR" -e 5m -c test_credential_lookup.conf 67gnunet-namestore -p -z epub -a -n $DISC_ATTR -t ATTR -V "$EORG_KEY $PREF_ATTR" -e 5m -c test_credential_lookup.conf
63gnunet-namestore -D -z epub
64 68
65# (2) EOrg assigns the attribute "preferred" to all entities that have been assigned "student" by StateU 69# (2) EOrg assigns the attribute "preferred" to all entities that have been assigned "student" by StateU
66gnunet-namestore -p -z eorg -a -n $PREF_ATTR -t ATTR -V "$STATEU_KEY $STATE_STUD_ATTR" -e 5m -c test_credential_lookup.conf 70gnunet-namestore -p -z eorg -a -n $PREF_ATTR -t ATTR -V "$STATEU_KEY $STATE_STUD_ATTR" -e 5m -c test_credential_lookup.conf