diff options
author | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-07 15:51:34 +0100 |
---|---|---|
committer | Schanzenbach, Martin <mschanzenbach@posteo.de> | 2016-12-07 15:51:34 +0100 |
commit | b4925b163d455ade842965ff95c09752ed49d20b (patch) | |
tree | 651220174eb5659264cf11abd2c5ec10a1a0f7f4 /src/credential | |
parent | 671f7c5fb4dcb596a2b6d065c2cd5f39be3fb431 (diff) | |
download | gnunet-b4925b163d455ade842965ff95c09752ed49d20b.tar.gz gnunet-b4925b163d455ade842965ff95c09752ed49d20b.zip |
- fix test
Diffstat (limited to 'src/credential')
-rw-r--r-- | src/credential/Makefile.am | 6 | ||||
-rw-r--r-- | src/credential/gnunet-service-credential.c | 8 | ||||
-rwxr-xr-x | src/credential/test_credential_verify_simple.sh | 2 |
3 files changed, 5 insertions, 11 deletions
diff --git a/src/credential/Makefile.am b/src/credential/Makefile.am index e85c3cc2d..47204ae26 100644 --- a/src/credential/Makefile.am +++ b/src/credential/Makefile.am | |||
@@ -103,8 +103,10 @@ libgnunetcredential_la_LDFLAGS = \ | |||
103 | # $(GN_PLUGIN_LDFLAGS) | 103 | # $(GN_PLUGIN_LDFLAGS) |
104 | 104 | ||
105 | 105 | ||
106 | #check_SCRIPTS = \ | 106 | check_SCRIPTS = \ |
107 | #test_gns_lookup.sh | 107 | test_credential_issue.sh \ |
108 | test_credential_verify_simple.sh \ | ||
109 | test_credential_verify.sh | ||
108 | 110 | ||
109 | if ENABLE_TEST_RUN | 111 | if ENABLE_TEST_RUN |
110 | if HAVE_SQLITE | 112 | if HAVE_SQLITE |
diff --git a/src/credential/gnunet-service-credential.c b/src/credential/gnunet-service-credential.c index bf85b1583..9f7b60f1f 100644 --- a/src/credential/gnunet-service-credential.c +++ b/src/credential/gnunet-service-credential.c | |||
@@ -526,14 +526,6 @@ handle_credential_query (void* cls, | |||
526 | continue; | 526 | continue; |
527 | cred_record_count++; | 527 | cred_record_count++; |
528 | crd = rd[i].data; | 528 | crd = rd[i].data; |
529 | /** | ||
530 | * TODO: | ||
531 | * Check if we have already found our credential here | ||
532 | * If so return success | ||
533 | * Else | ||
534 | * Save all found attributes/issues and prepare forward | ||
535 | * resolution of issuer attribute | ||
536 | */ | ||
537 | if(GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify(GNUNET_SIGNATURE_PURPOSE_CREDENTIAL, | 529 | if(GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify(GNUNET_SIGNATURE_PURPOSE_CREDENTIAL, |
538 | &crd->purpose, | 530 | &crd->purpose, |
539 | &crd->sig, | 531 | &crd->sig, |
diff --git a/src/credential/test_credential_verify_simple.sh b/src/credential/test_credential_verify_simple.sh index 2fac4659e..924f2ab4a 100755 --- a/src/credential/test_credential_verify_simple.sh +++ b/src/credential/test_credential_verify_simple.sh | |||
@@ -19,7 +19,7 @@ rm -rf `gnunet-config -c test_credential_lookup.conf -s PATHS -o GNUNET_HOME -f` | |||
19 | 19 | ||
20 | 20 | ||
21 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" | 21 | which timeout &> /dev/null && DO_TIMEOUT="timeout 30" |
22 | #gnunet-arm -s -c test_credential_lookup.conf | 22 | gnunet-arm -s -c test_credential_lookup.conf |
23 | gnunet-identity -C testissuer -c test_credential_lookup.conf | 23 | gnunet-identity -C testissuer -c test_credential_lookup.conf |
24 | gnunet-identity -C testsubject -c test_credential_lookup.conf | 24 | gnunet-identity -C testsubject -c test_credential_lookup.conf |
25 | 25 | ||