diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-14 08:35:22 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-14 08:35:22 +0100 |
commit | a80e5610fe689631da94242e05f5ad85b21b6b4d (patch) | |
tree | 4217defc298ad87c791ccf6b1d5dac04cf03aad4 /src/credential/test_credential_verify.sh | |
parent | 8052eb6445f29eec791e7c473a15334a66c91141 (diff) | |
download | gnunet-a80e5610fe689631da94242e05f5ad85b21b6b4d.tar.gz gnunet-a80e5610fe689631da94242e05f5ad85b21b6b4d.zip |
-fix
Diffstat (limited to 'src/credential/test_credential_verify.sh')
-rwxr-xr-x | src/credential/test_credential_verify.sh | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/credential/test_credential_verify.sh b/src/credential/test_credential_verify.sh index 012341f5f..6d69e337b 100755 --- a/src/credential/test_credential_verify.sh +++ b/src/credential/test_credential_verify.sh | |||
@@ -60,6 +60,7 @@ gnunet-namestore -p -z alice -a -n $TEST_CREDENTIAL -t CRED -V "$CRED" -e 5m -c | |||
60 | #TODO2 Add -z swich like in gnunet-gns | 60 | #TODO2 Add -z swich like in gnunet-gns |
61 | RES_CRED=`gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --credential=$TEST_CREDENTIAL -c test_credential_lookup.conf` | 61 | RES_CRED=`gnunet-credential --verify --issuer=$SERVICE_KEY --attribute=$USER_ATTR --subject=$ALICE_KEY --credential=$TEST_CREDENTIAL -c test_credential_lookup.conf` |
62 | 62 | ||
63 | |||
63 | #TODO cleanup properly | 64 | #TODO cleanup properly |
64 | gnunet-namestore -z alice -d -n $TEST_CREDENTIAL -t CRED -e never -c test_credential_lookup.conf | 65 | gnunet-namestore -z alice -d -n $TEST_CREDENTIAL -t CRED -e never -c test_credential_lookup.conf |
65 | gnunet-namestore -z gnu -d -n $GNU_PROJECT_ATTR -t ATTR -c test_credential_lookup.conf | 66 | gnunet-namestore -z gnu -d -n $GNU_PROJECT_ATTR -t ATTR -c test_credential_lookup.conf |
@@ -69,7 +70,7 @@ gnunet-arm -e -c test_credential_lookup.conf | |||
69 | 70 | ||
70 | if [ "$RES_CRED" != "Failed." ] | 71 | if [ "$RES_CRED" != "Failed." ] |
71 | then | 72 | then |
72 | echo $RES_CRED | 73 | echo -e "${RES_CRED}" |
73 | exit 0 | 74 | exit 0 |
74 | else | 75 | else |
75 | echo "FAIL: Failed to verify credential $RES_CRED." | 76 | echo "FAIL: Failed to verify credential $RES_CRED." |