diff options
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." |