diff options
-rwxr-xr-x | src/credential/test_credential_verify_simple.sh | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/credential/test_credential_verify_simple.sh b/src/credential/test_credential_verify_simple.sh index c4fd8c7a3..bcb3f9877 100755 --- a/src/credential/test_credential_verify_simple.sh +++ b/src/credential/test_credential_verify_simple.sh | |||
@@ -31,17 +31,19 @@ CRED=`$DO_TIMEOUT gnunet-credential --issue --ego=testissuer --subject=$SUBJECT_ | |||
31 | TEST_CREDENTIAL="t1" | 31 | TEST_CREDENTIAL="t1" |
32 | gnunet-namestore -p -z testsubject -a -n $TEST_CREDENTIAL -t CRED -V "$CRED" -e 5m -c test_credential_lookup.conf | 32 | gnunet-namestore -p -z testsubject -a -n $TEST_CREDENTIAL -t CRED -V "$CRED" -e 5m -c test_credential_lookup.conf |
33 | 33 | ||
34 | CREDS=`$DO_TIMEOUT gnunet-credential --collect --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --ego=testsubject -c test_credential_lookup.conf | paste -d, -s` | ||
35 | |||
36 | |||
34 | #TODO2 Add -z swich like in gnunet-gns | 37 | #TODO2 Add -z swich like in gnunet-gns |
35 | #RES_CRED=`$DO_TIMEOUT gnunet-credential --verify --issuer=$ISSUER_KEY --attribute="$TEST_ATTR" --subject=$SUBJECT_KEY --credential=$TEST_CREDENTIAL -c test_credential_lookup.conf` | 38 | #RES_CRED=`$DO_TIMEOUT gnunet-credential --verify --issuer=$ISSUER_KEY --attribute="$TEST_ATTR" --subject=$SUBJECT_KEY --credential=$TEST_CREDENTIAL -c test_credential_lookup.conf` |
36 | RES_CRED=`gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --credential=$TEST_CREDENTIAL -c test_credential_lookup.conf` | 39 | RES_CRED=`gnunet-credential --verify --issuer=$ISSUER_KEY --attribute=$TEST_ATTR --subject=$SUBJECT_KEY --credential="$CREDS" -c test_credential_lookup.conf` |
37 | 40 | ||
38 | #TODO cleanup properly | 41 | #TODO cleanup properly |
39 | gnunet-namestore -z testsubject -d -n $TEST_CREDENTIAL -t CRED -e never -c test_credential_lookup.conf | 42 | gnunet-namestore -z testsubject -d -n $TEST_CREDENTIAL -t CRED -e never -c test_credential_lookup.conf |
40 | gnunet-identity -D testsubject -c test_credential_lookup.conf | 43 | gnunet-identity -D testsubject -c test_credential_lookup.conf |
41 | gnunet-arm -e -c test_credential_lookup.conf | 44 | gnunet-arm -e -c test_credential_lookup.conf |
42 | echo $RES_CRED | ||
43 | #TODO3 proper test | 45 | #TODO3 proper test |
44 | if [ "$RES_CRED" == "Successful." ] | 46 | if [ "$RES_CRED" != "Failed." ] |
45 | then | 47 | then |
46 | exit 0 | 48 | exit 0 |
47 | else | 49 | else |