summaryrefslogtreecommitdiff
path: root/src/credential
diff options
context:
space:
mode:
authorSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-07 15:51:34 +0100
committerSchanzenbach, Martin <mschanzenbach@posteo.de>2016-12-07 15:51:34 +0100
commitb4925b163d455ade842965ff95c09752ed49d20b (patch)
tree651220174eb5659264cf11abd2c5ec10a1a0f7f4 /src/credential
parent671f7c5fb4dcb596a2b6d065c2cd5f39be3fb431 (diff)
- fix test
Diffstat (limited to 'src/credential')
-rw-r--r--src/credential/Makefile.am6
-rw-r--r--src/credential/gnunet-service-credential.c8
-rwxr-xr-xsrc/credential/test_credential_verify_simple.sh2
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 = \
# $(GN_PLUGIN_LDFLAGS)
-#check_SCRIPTS = \
- #test_gns_lookup.sh
+check_SCRIPTS = \
+ test_credential_issue.sh \
+ test_credential_verify_simple.sh \
+ test_credential_verify.sh
if ENABLE_TEST_RUN
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,
continue;
cred_record_count++;
crd = rd[i].data;
- /**
- * TODO:
- * Check if we have already found our credential here
- * If so return success
- * Else
- * Save all found attributes/issues and prepare forward
- * resolution of issuer attribute
- */
if(GNUNET_OK != GNUNET_CRYPTO_ecdsa_verify(GNUNET_SIGNATURE_PURPOSE_CREDENTIAL,
&crd->purpose,
&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`
which timeout &> /dev/null && DO_TIMEOUT="timeout 30"
-#gnunet-arm -s -c test_credential_lookup.conf
+gnunet-arm -s -c test_credential_lookup.conf
gnunet-identity -C testissuer -c test_credential_lookup.conf
gnunet-identity -C testsubject -c test_credential_lookup.conf