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/include/gnunet_crypto_lib.h | |
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/include/gnunet_crypto_lib.h')
-rw-r--r-- | src/include/gnunet_crypto_lib.h | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h index 4133360a2..502209b0f 100644 --- a/src/include/gnunet_crypto_lib.h +++ b/src/include/gnunet_crypto_lib.h | |||
@@ -759,16 +759,6 @@ typedef void (*GNUNET_CRYPTO_EccKeyCallback)(void *cls, | |||
759 | 759 | ||
760 | /** | 760 | /** |
761 | * @ingroup crypto | 761 | * @ingroup crypto |
762 | * Free memory occupied by ECC key | ||
763 | * | ||
764 | * @param priv pointer to the memory to free | ||
765 | */ | ||
766 | void | ||
767 | GNUNET_CRYPTO_ecc_key_free (struct GNUNET_CRYPTO_EccPrivateKey *priv); | ||
768 | |||
769 | |||
770 | /** | ||
771 | * @ingroup crypto | ||
772 | * Extract the public key for the given private key. | 762 | * Extract the public key for the given private key. |
773 | * | 763 | * |
774 | * @param priv the private key | 764 | * @param priv the private key |
@@ -816,7 +806,7 @@ GNUNET_CRYPTO_ecc_public_key_from_string (const char *enc, | |||
816 | * | 806 | * |
817 | * @param filename name of file to use to store the key | 807 | * @param filename name of file to use to store the key |
818 | * @return new private key, NULL on error (for example, | 808 | * @return new private key, NULL on error (for example, |
819 | * permission denied) | 809 | * permission denied); free using #GNUNET_free |
820 | */ | 810 | */ |
821 | struct GNUNET_CRYPTO_EccPrivateKey * | 811 | struct GNUNET_CRYPTO_EccPrivateKey * |
822 | GNUNET_CRYPTO_ecc_key_create_from_file (const char *filename); | 812 | GNUNET_CRYPTO_ecc_key_create_from_file (const char *filename); |
@@ -828,7 +818,7 @@ GNUNET_CRYPTO_ecc_key_create_from_file (const char *filename); | |||
828 | * the file specified in the configuration. | 818 | * the file specified in the configuration. |
829 | * | 819 | * |
830 | * @return new private key, NULL on error (for example, | 820 | * @return new private key, NULL on error (for example, |
831 | * permission denied) | 821 | * permission denied); free using #GNUNET_free |
832 | */ | 822 | */ |
833 | struct GNUNET_CRYPTO_EccPrivateKey * | 823 | struct GNUNET_CRYPTO_EccPrivateKey * |
834 | GNUNET_CRYPTO_ecc_key_create_from_configuration (const struct GNUNET_CONFIGURATION_Handle *cfg); | 824 | GNUNET_CRYPTO_ecc_key_create_from_configuration (const struct GNUNET_CONFIGURATION_Handle *cfg); |
@@ -838,7 +828,7 @@ GNUNET_CRYPTO_ecc_key_create_from_configuration (const struct GNUNET_CONFIGURATI | |||
838 | * @ingroup crypto | 828 | * @ingroup crypto |
839 | * Create a new private key. Caller must free return value. | 829 | * Create a new private key. Caller must free return value. |
840 | * | 830 | * |
841 | * @return fresh private key | 831 | * @return fresh private key; free using #GNUNET_free |
842 | */ | 832 | */ |
843 | struct GNUNET_CRYPTO_EccPrivateKey * | 833 | struct GNUNET_CRYPTO_EccPrivateKey * |
844 | GNUNET_CRYPTO_ecc_key_create (void); | 834 | GNUNET_CRYPTO_ecc_key_create (void); |
@@ -848,7 +838,7 @@ GNUNET_CRYPTO_ecc_key_create (void); | |||
848 | * @ingroup crypto | 838 | * @ingroup crypto |
849 | * Get the shared private key we use for anonymous users. | 839 | * Get the shared private key we use for anonymous users. |
850 | * | 840 | * |
851 | * @return "anonymous" private key | 841 | * @return "anonymous" private key; do not free |
852 | */ | 842 | */ |
853 | const struct GNUNET_CRYPTO_EccPrivateKey * | 843 | const struct GNUNET_CRYPTO_EccPrivateKey * |
854 | GNUNET_CRYPTO_ecc_key_get_anonymous (void); | 844 | GNUNET_CRYPTO_ecc_key_get_anonymous (void); |