summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_verify_simple.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_simple.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_simple.sh')
-rwxr-xr-xsrc/credential/test_credential_verify_simple.sh6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/credential/test_credential_verify_simple.sh b/src/credential/test_credential_verify_simple.sh
index d7657c55f..bd0b260b1 100755
--- a/src/credential/test_credential_verify_simple.sh
+++ b/src/credential/test_credential_verify_simple.sh
@@ -27,15 +27,17 @@ TEST_ATTR="user"
27SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}') 27SUBJECT_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testsubject | awk '{print $3}')
28ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}') 28ISSUER_KEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep testissuer | awk '{print $3}')
29 29
30gnunet-identity -d
31
30# Create delegate (1) 32# Create delegate (1)
31SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=testissuer --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf` 33SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=testissuer --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --ttl="2019-12-12 10:00:00" -c test_credential_lookup.conf`
32gnunet-credential --createSubjectSide --ego=testsubject --import "$SIGNED" --private 34gnunet-credential --createSubjectSide --ego=testsubject --import="$SIGNED" --private
33gnunet-namestore -D -z testsubject 35gnunet-namestore -D -z testsubject
34 36
35# Starting to resolve 37# Starting to resolve
36echo "+++ Starting to Resolve +++" 38echo "+++ Starting to Resolve +++"
37 39
38DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s` 40DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s - -`
39echo $DELS 41echo $DELS
40gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf 42gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --delegate="$DELS" -c test_credential_lookup.conf
41 43