aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-03-04 14:09:27 +0000
committerChristian Grothoff <christian@grothoff.org>2013-03-04 14:09:27 +0000
commitdcb57a9e51e8fe7412948ec0c47d383ed390ed61 (patch)
tree4b137f53d1959e099db77da43091973471df0dbc /src/testing
parent4022058a6325b650542ad8e5a52e167c5336eaaa (diff)
downloadgnunet-dcb57a9e51e8fe7412948ec0c47d383ed390ed61.tar.gz
gnunet-dcb57a9e51e8fe7412948ec0c47d383ed390ed61.zip
add argument to GNUNET_CRYPTO_ecc_decode_key to allow testing to disable key validation
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/testing.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/testing/testing.c b/src/testing/testing.c
index 16f902890..826c5753f 100644
--- a/src/testing/testing.c
+++ b/src/testing/testing.c
@@ -544,7 +544,8 @@ GNUNET_TESTING_hostkey_get (const struct GNUNET_TESTING_System *system,
544 private_key = GNUNET_CRYPTO_ecc_decode_key (system->hostkeys_data + 544 private_key = GNUNET_CRYPTO_ecc_decode_key (system->hostkeys_data +
545 (key_number * 545 (key_number *
546 GNUNET_TESTING_HOSTKEYFILESIZE), 546 GNUNET_TESTING_HOSTKEYFILESIZE),
547 GNUNET_TESTING_HOSTKEYFILESIZE); 547 GNUNET_TESTING_HOSTKEYFILESIZE,
548 GNUNET_NO);
548 if (NULL == private_key) 549 if (NULL == private_key)
549 { 550 {
550 LOG (GNUNET_ERROR_TYPE_ERROR, 551 LOG (GNUNET_ERROR_TYPE_ERROR,