summaryrefslogtreecommitdiff
path: root/src/credential/test_credential_bi_and4.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_bi_and4.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_bi_and4.sh')
-rwxr-xr-xsrc/credential/test_credential_bi_and4.sh7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/credential/test_credential_bi_and4.sh b/src/credential/test_credential_bi_and4.sh
index c4db5c82a..18731d5d1 100755
--- a/src/credential/test_credential_bi_and4.sh
+++ b/src/credential/test_credential_bi_and4.sh
@@ -37,6 +37,7 @@ EKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep e | awk '{print
37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') 37FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}')
38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') 38GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}')
39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') 39HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}')
40gnunet-identity -d
40 41
41# (1) (A.a) <- B.b 42# (1) (A.a) <- B.b
42# (2) (B.b) <- C.c AND G.g 43# (2) (B.b) <- C.c AND G.g
@@ -50,15 +51,15 @@ gnunet-credential --createIssuerSide --ego=b --attribute="b" --subject="$CKEY c,
50gnunet-namestore -D -z b 51gnunet-namestore -D -z b
51 52
52SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 53SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
53gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 54gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
54SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` 55SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$FKEY" --ttl="2019-12-12 10:00:00"`
55gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private 56gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private
56gnunet-namestore -D -z f 57gnunet-namestore -D -z f
57 58
58# Starting to resolve 59# Starting to resolve
59echo "+++ Starting to Resolve +++" 60echo "+++ Starting to Resolve +++"
60 61
61DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --backward -c test_credential_lookup.conf | paste -d, -s` 62DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --backward -c test_credential_lookup.conf | paste -d, -s - -`
62echo $DELS 63echo $DELS
63echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf 64echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf
64gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --backward -c test_credential_lookup.conf 65gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --backward -c test_credential_lookup.conf