aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-08-21 15:34:18 +0000
committerChristian Grothoff <christian@grothoff.org>2013-08-21 15:34:18 +0000
commit65e91346db9fe4ca1b1ff6516872454c468eb7f2 (patch)
tree4228cfb2c3b628f6dd011f8b73075ecb86343217 /src/util/crypto_ecc.c
parent47386fdbe2b5945fc2c319ef6899e3b67157d04f (diff)
downloadgnunet-65e91346db9fe4ca1b1ff6516872454c468eb7f2.tar.gz
gnunet-65e91346db9fe4ca1b1ff6516872454c468eb7f2.zip
removing GNUNET_CRYPTO_ecc_key_free, use GNUNET_free directly instead
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r--src/util/crypto_ecc.c16
1 files changed, 2 insertions, 14 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 89cbde922..5ad0b81cb 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -53,18 +53,6 @@
53 53
54 54
55/** 55/**
56 * Free memory occupied by ECC key
57 *
58 * @param priv pointer to the memory to free
59 */
60void
61GNUNET_CRYPTO_ecc_key_free (struct GNUNET_CRYPTO_EccPrivateKey *priv)
62{
63 GNUNET_free (priv);
64}
65
66
67/**
68 * Extract values from an S-expression. 56 * Extract values from an S-expression.
69 * 57 *
70 * @param array where to store the result(s) 58 * @param array where to store the result(s)
@@ -668,7 +656,7 @@ GNUNET_CRYPTO_ecc_setup_key (const char *cfg_name)
668 (void) GNUNET_CONFIGURATION_load (cfg, cfg_name); 656 (void) GNUNET_CONFIGURATION_load (cfg, cfg_name);
669 priv = GNUNET_CRYPTO_ecc_key_create_from_configuration (cfg); 657 priv = GNUNET_CRYPTO_ecc_key_create_from_configuration (cfg);
670 if (NULL != priv) 658 if (NULL != priv)
671 GNUNET_CRYPTO_ecc_key_free (priv); 659 GNUNET_free (priv);
672 GNUNET_CONFIGURATION_destroy (cfg); 660 GNUNET_CONFIGURATION_destroy (cfg);
673} 661}
674 662
@@ -695,7 +683,7 @@ GNUNET_CRYPTO_get_host_identity (const struct GNUNET_CONFIGURATION_Handle *cfg,
695 return GNUNET_SYSERR; 683 return GNUNET_SYSERR;
696 } 684 }
697 GNUNET_CRYPTO_ecc_key_get_public (priv, &pub); 685 GNUNET_CRYPTO_ecc_key_get_public (priv, &pub);
698 GNUNET_CRYPTO_ecc_key_free (priv); 686 GNUNET_free (priv);
699 GNUNET_CRYPTO_hash (&pub, sizeof (pub), &dst->hashPubKey); 687 GNUNET_CRYPTO_hash (&pub, sizeof (pub), &dst->hashPubKey);
700 return GNUNET_OK; 688 return GNUNET_OK;
701} 689}