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/core | |
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/core')
-rw-r--r-- | src/core/gnunet-service-core_kx.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/gnunet-service-core_kx.c b/src/core/gnunet-service-core_kx.c index 4e216b905..9f904742d 100644 --- a/src/core/gnunet-service-core_kx.c +++ b/src/core/gnunet-service-core_kx.c | |||
@@ -1518,7 +1518,7 @@ do_rekey (void *cls, | |||
1518 | &do_rekey, | 1518 | &do_rekey, |
1519 | NULL); | 1519 | NULL); |
1520 | if (NULL != my_ephemeral_key) | 1520 | if (NULL != my_ephemeral_key) |
1521 | GNUNET_CRYPTO_ecc_key_free (my_ephemeral_key); | 1521 | GNUNET_free (my_ephemeral_key); |
1522 | my_ephemeral_key = GNUNET_CRYPTO_ecc_key_create (); | 1522 | my_ephemeral_key = GNUNET_CRYPTO_ecc_key_create (); |
1523 | GNUNET_assert (NULL != my_ephemeral_key); | 1523 | GNUNET_assert (NULL != my_ephemeral_key); |
1524 | sign_ephemeral_key (); | 1524 | sign_ephemeral_key (); |
@@ -1553,7 +1553,7 @@ GSC_KX_init (struct GNUNET_CRYPTO_EccPrivateKey *pk) | |||
1553 | if (NULL == my_ephemeral_key) | 1553 | if (NULL == my_ephemeral_key) |
1554 | { | 1554 | { |
1555 | GNUNET_break (0); | 1555 | GNUNET_break (0); |
1556 | GNUNET_CRYPTO_ecc_key_free (my_private_key); | 1556 | GNUNET_free (my_private_key); |
1557 | my_private_key = NULL; | 1557 | my_private_key = NULL; |
1558 | return GNUNET_SYSERR; | 1558 | return GNUNET_SYSERR; |
1559 | } | 1559 | } |
@@ -1586,12 +1586,12 @@ GSC_KX_done () | |||
1586 | if ( (NULL != my_ephemeral_key) && | 1586 | if ( (NULL != my_ephemeral_key) && |
1587 | (my_ephemeral_key != my_private_key) ) | 1587 | (my_ephemeral_key != my_private_key) ) |
1588 | { | 1588 | { |
1589 | GNUNET_CRYPTO_ecc_key_free (my_ephemeral_key); | 1589 | GNUNET_free (my_ephemeral_key); |
1590 | my_ephemeral_key = NULL; | 1590 | my_ephemeral_key = NULL; |
1591 | } | 1591 | } |
1592 | if (NULL != my_private_key) | 1592 | if (NULL != my_private_key) |
1593 | { | 1593 | { |
1594 | GNUNET_CRYPTO_ecc_key_free (my_private_key); | 1594 | GNUNET_free (my_private_key); |
1595 | my_private_key = NULL; | 1595 | my_private_key = NULL; |
1596 | } | 1596 | } |
1597 | if (NULL != mst) | 1597 | if (NULL != mst) |