summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_verify.sh
diff options
context:
space:
mode:
authorAndreas Ebner <a.e.bner@web.de>2019-09-20 11:32:00 +0200
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2019-10-07 12:18:20 +0200
commit4d4a16e000683046ebb19e6efe15e11d60c2178d (patch)
tree291ce657e2eabe7bf89b4ca3c929f2331da16f23 /src/credential/test_credential_verify.sh
parent3099a7c25cf6b11b0f1909e5a2651d65c0e921c7 (diff)
downloadgnunet-4d4a16e000683046ebb19e6efe15e11d60c2178d.tar.gz
gnunet-4d4a16e000683046ebb19e6efe15e11d60c2178d.zip
Test cleanup/fix:
- added missing "- -" to collect for macOS - replaced 'import $SIGNED' with 'import=$SIGNED' to match all other parameters and better visibility
Diffstat (limited to 'src/credential/test_credential_verify.sh')
-rwxr-xr-xsrc/credential/test_credential_verify.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/credential/test_credential_verify.sh b/src/credential/test_credential_verify.sh
index 08060f60a..38492de8e 100755
--- a/src/credential/test_credential_verify.sh
+++ b/src/credential/test_credential_verify.sh
@@ -41,6 +41,8 @@ DEVELOPER_ATTR="developer"
41DEV_ATTR="developer" 41DEV_ATTR="developer"
42TEST_CREDENTIAL="mygnunetcreds" 42TEST_CREDENTIAL="mygnunetcreds"
43 43
44gnunet-identity -d
45
44# (1) A service assigns the attribute "user" to all entities that have been assigned "member" by entities that werde assigned "project" from GNU 46# (1) A service assigns the attribute "user" to all entities that have been assigned "member" by entities that werde assigned "project" from GNU
45gnunet-credential --createIssuerSide --ego=service --attribute="$USER_ATTR" --subject="$GNU_KEY $GNU_PROJECT_ATTR.$MEMBER_ATTR" --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf 47gnunet-credential --createIssuerSide --ego=service --attribute="$USER_ATTR" --subject="$GNU_KEY $GNU_PROJECT_ATTR.$MEMBER_ATTR" --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf
46gnunet-namestore -D -z service 48gnunet-namestore -D -z service
@@ -56,13 +58,13 @@ gnunet-namestore -D -z gnunet
56 58
57# (5) GNUnet signes the delegate and Alice stores it 59# (5) GNUnet signes the delegate and Alice stores it
58SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"` 60SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=gnunet --attribute=$DEV_ATTR --subject=$ALICE_KEY --ttl="2019-12-12 10:00:00"`
59gnunet-credential --createSubjectSide --ego=alice --import "$SIGNED" --private 61gnunet-credential --createSubjectSide --ego=alice --import="$SIGNED" --private
60gnunet-namestore -D -z alice 62gnunet-namestore -D -z alice
61 63
62# Starting to resolve 64# Starting to resolve
63echo "+++ Starting to Resolve +++" 65echo "+++ Starting to Resolve +++"
64 66
65DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s` 67DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$SERVICE_KEY --attribute=$USER_ATTR --ego=alice --backward -c test_credential_lookup.conf | paste -d, -s - -`
66echo $DELS 68echo $DELS
67echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf 69echo gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf
68gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf 70gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --delegate="$DELS" --backward -c test_credential_lookup.conf