diff options
Diffstat (limited to 'src/credential/test_credential_bi_and4.sh')
-rwxr-xr-x | src/credential/test_credential_bi_and4.sh | 7 |
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 | |||
37 | FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') | 37 | FKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep f | awk '{print $3}') |
38 | GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') | 38 | GKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep g | awk '{print $3}') |
39 | HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') | 39 | HKEY=$(gnunet-identity -d -c test_credential_lookup.conf | grep h | awk '{print $3}') |
40 | gnunet-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, | |||
50 | gnunet-namestore -D -z b | 51 | gnunet-namestore -D -z b |
51 | 52 | ||
52 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` | 53 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=g --attribute="g" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` |
53 | gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private | 54 | gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private |
54 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` | 55 | SIGNED=`$DO_TIMEOUT gnunet-credential --signSubjectSide --ego=c --attribute="c" --subject="$FKEY" --ttl="2019-12-12 10:00:00"` |
55 | gnunet-credential --createSubjectSide --ego=f --import "$SIGNED" --private | 56 | gnunet-credential --createSubjectSide --ego=f --import="$SIGNED" --private |
56 | gnunet-namestore -D -z f | 57 | gnunet-namestore -D -z f |
57 | 58 | ||
58 | # Starting to resolve | 59 | # Starting to resolve |
59 | echo "+++ Starting to Resolve +++" | 60 | echo "+++ Starting to Resolve +++" |
60 | 61 | ||
61 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --backward -c test_credential_lookup.conf | paste -d, -s` | 62 | DELS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$AKEY --attribute="a" --ego=f --backward -c test_credential_lookup.conf | paste -d, -s - -` |
62 | echo $DELS | 63 | echo $DELS |
63 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf | 64 | echo gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate=\'$DELS\' --backward -c test_credential_lookup.conf |
64 | gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --backward -c test_credential_lookup.conf | 65 | gnunet-credential --verify --issuer=$AKEY --attribute="a" --subject=$FKEY --delegate="$DELS" --backward -c test_credential_lookup.conf |