aboutsummaryrefslogtreecommitdiff
path: root/src/testing/gnunet-testing.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-10-10 14:38:55 +0000
committerChristian Grothoff <christian@grothoff.org>2013-10-10 14:38:55 +0000
commit9351b1e9bdf2b067b6db06562c26ba658cff42b8 (patch)
tree68dc4ab447e7e8b6a20a706858cd36238c1c7c5f /src/testing/gnunet-testing.c
parent8beabcd96c0cf1e1873c0b5ff96e537f1beb0b34 (diff)
downloadgnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.tar.gz
gnunet-9351b1e9bdf2b067b6db06562c26ba658cff42b8.zip
separating ECC crypto into functions/structs for ECDHE, ECDSA and EDDSA
Diffstat (limited to 'src/testing/gnunet-testing.c')
-rw-r--r--src/testing/gnunet-testing.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c
index 1cec948a2..a79e836c7 100644
--- a/src/testing/gnunet-testing.c
+++ b/src/testing/gnunet-testing.c
@@ -164,7 +164,7 @@ create_hostkeys (const unsigned int no)
164 struct GNUNET_TESTING_System *system; 164 struct GNUNET_TESTING_System *system;
165 struct GNUNET_PeerIdentity id; 165 struct GNUNET_PeerIdentity id;
166 struct GNUNET_DISK_FileHandle *fd; 166 struct GNUNET_DISK_FileHandle *fd;
167 struct GNUNET_CRYPTO_EccPrivateKey *pk; 167 struct GNUNET_CRYPTO_EddsaPrivateKey *pk;
168 168
169 system = GNUNET_TESTING_system_create ("testing", NULL, NULL, NULL); 169 system = GNUNET_TESTING_system_create ("testing", NULL, NULL, NULL);
170 pk = GNUNET_TESTING_hostkey_get (system, create_no, &id); 170 pk = GNUNET_TESTING_hostkey_get (system, create_no, &id);
@@ -182,7 +182,7 @@ create_hostkeys (const unsigned int no)
182 GNUNET_DISK_PERM_USER_WRITE); 182 GNUNET_DISK_PERM_USER_WRITE);
183 GNUNET_assert (fd != NULL); 183 GNUNET_assert (fd != NULL);
184 ret = GNUNET_DISK_file_write (fd, pk, 184 ret = GNUNET_DISK_file_write (fd, pk,
185 sizeof (struct GNUNET_CRYPTO_EccPrivateKey)); 185 sizeof (struct GNUNET_CRYPTO_EddsaPrivateKey));
186 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd)); 186 GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd));
187 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing", 187 GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing",
188 "Wrote hostkey to file: `%s'\n", create_hostkey); 188 "Wrote hostkey to file: `%s'\n", create_hostkey);