diff options
author | Christian Grothoff <christian@grothoff.org> | 2013-08-21 15:34:18 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2013-08-21 15:34:18 +0000 |
commit | 65e91346db9fe4ca1b1ff6516872454c468eb7f2 (patch) | |
tree | 4228cfb2c3b628f6dd011f8b73075ecb86343217 /src/testing | |
parent | 47386fdbe2b5945fc2c319ef6899e3b67157d04f (diff) | |
download | gnunet-65e91346db9fe4ca1b1ff6516872454c468eb7f2.tar.gz gnunet-65e91346db9fe4ca1b1ff6516872454c468eb7f2.zip |
removing GNUNET_CRYPTO_ecc_key_free, use GNUNET_free directly instead
Diffstat (limited to 'src/testing')
-rw-r--r-- | src/testing/gnunet-testing.c | 2 | ||||
-rw-r--r-- | src/testing/testing.c | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/testing/gnunet-testing.c b/src/testing/gnunet-testing.c index 45ca4978c..b3d3ac268 100644 --- a/src/testing/gnunet-testing.c +++ b/src/testing/gnunet-testing.c | |||
@@ -143,7 +143,7 @@ create_hostkeys (const unsigned int no) | |||
143 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd)); | 143 | GNUNET_assert (GNUNET_OK == GNUNET_DISK_file_close (fd)); |
144 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing", | 144 | GNUNET_log_from (GNUNET_ERROR_TYPE_DEBUG, "transport-testing", |
145 | "Wrote hostkey to file: `%s'\n", create_hostkey); | 145 | "Wrote hostkey to file: `%s'\n", create_hostkey); |
146 | GNUNET_CRYPTO_ecc_key_free (pk); | 146 | GNUNET_free (pk); |
147 | GNUNET_TESTING_system_destroy (system, GNUNET_YES); | 147 | GNUNET_TESTING_system_destroy (system, GNUNET_YES); |
148 | return 0; | 148 | return 0; |
149 | } | 149 | } |
diff --git a/src/testing/testing.c b/src/testing/testing.c index 9e193bd9c..db74f8897 100644 --- a/src/testing/testing.c +++ b/src/testing/testing.c | |||
@@ -1169,7 +1169,7 @@ GNUNET_TESTING_peer_configure (struct GNUNET_TESTING_System *system, | |||
1169 | goto err_ret; | 1169 | goto err_ret; |
1170 | } | 1170 | } |
1171 | if (NULL != pk) | 1171 | if (NULL != pk) |
1172 | GNUNET_CRYPTO_ecc_key_free (pk); | 1172 | GNUNET_free (pk); |
1173 | if (GNUNET_NO == | 1173 | if (GNUNET_NO == |
1174 | GNUNET_CONFIGURATION_have_value (cfg, "PEER", "PRIVATE_KEY")) | 1174 | GNUNET_CONFIGURATION_have_value (cfg, "PEER", "PRIVATE_KEY")) |
1175 | { | 1175 | { |
@@ -1288,7 +1288,7 @@ GNUNET_TESTING_peer_get_identity (struct GNUNET_TESTING_Peer *peer, | |||
1288 | return; | 1288 | return; |
1289 | } | 1289 | } |
1290 | peer->id = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); | 1290 | peer->id = GNUNET_malloc (sizeof (struct GNUNET_PeerIdentity)); |
1291 | GNUNET_CRYPTO_ecc_key_free (GNUNET_TESTING_hostkey_get (peer->system, | 1291 | GNUNET_free (GNUNET_TESTING_hostkey_get (peer->system, |
1292 | peer->key_number, | 1292 | peer->key_number, |
1293 | peer->id)); | 1293 | peer->id)); |
1294 | memcpy (id, peer->id, sizeof (struct GNUNET_PeerIdentity)); | 1294 | memcpy (id, peer->id, sizeof (struct GNUNET_PeerIdentity)); |