aboutsummaryrefslogtreecommitdiff
path: root/src/util/crypto_ecc.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2013-09-09 13:07:05 +0000
committerChristian Grothoff <christian@grothoff.org>2013-09-09 13:07:05 +0000
commit3294db5f81273f90b1296ef999450f80b962fecb (patch)
tree5f892d39e72e924f0fca0f851c47cb9bc085b8bd /src/util/crypto_ecc.c
parent4a9480a97bb883848ecf5e98367b1f0a576797aa (diff)
downloadgnunet-3294db5f81273f90b1296ef999450f80b962fecb.tar.gz
gnunet-3294db5f81273f90b1296ef999450f80b962fecb.zip
-eliminate LISTEN_PID check, silly idea anyway, better to just unset the LISTEN_FDS after use; also this is needed to make things work with gdb/valgrind/monkey/etc.
Diffstat (limited to 'src/util/crypto_ecc.c')
-rw-r--r--src/util/crypto_ecc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/util/crypto_ecc.c b/src/util/crypto_ecc.c
index 6617ac6ea..755db9bdd 100644
--- a/src/util/crypto_ecc.c
+++ b/src/util/crypto_ecc.c
@@ -309,7 +309,7 @@ GNUNET_CRYPTO_ecc_public_key_to_string (const struct GNUNET_CRYPTO_EccPublicKey
309 * @param enc encoded public key 309 * @param enc encoded public key
310 * @param enclen number of bytes in enc (without 0-terminator) 310 * @param enclen number of bytes in enc (without 0-terminator)
311 * @param pub where to store the public key 311 * @param pub where to store the public key
312 * @return GNUNET_OK on success 312 * @return #GNUNET_OK on success
313 */ 313 */
314int 314int
315GNUNET_CRYPTO_ecc_public_key_from_string (const char *enc, 315GNUNET_CRYPTO_ecc_public_key_from_string (const char *enc,
@@ -879,7 +879,6 @@ GNUNET_CRYPTO_ecc_ecdh (const struct GNUNET_CRYPTO_EccPrivateKey *priv,
879 } 879 }
880 gcry_mpi_point_release (result); 880 gcry_mpi_point_release (result);
881 gcry_ctx_release (ctx); 881 gcry_ctx_release (ctx);
882 /* FIXME: only use 'result_x' as key material */
883 882
884 mpi_print (xbuf, sizeof (xbuf), result_x); 883 mpi_print (xbuf, sizeof (xbuf), result_x);
885 GNUNET_CRYPTO_hash (xbuf, sizeof (xbuf), key_material); 884 GNUNET_CRYPTO_hash (xbuf, sizeof (xbuf), key_material);