&run, NULL)) ? 0 : 1;
MHD_destroy_response (curl_failure_response);
GNUNET_free_non_null ((char *) argv);
+ GNUNET_CRYPTO_ecc_key_clear (&local_shorten_zone);
return ret;
}
GNUNET_CRYPTO_ecc_key_create (void);
+/**
+ * @ingroup crypto
+ * Clear memory that was used to store a private key.
+ *
+ * @param pk location of the key
+ */
+void
+GNUNET_CRYPTO_ecc_key_clear (struct GNUNET_CRYPTO_EccPrivateKey *pk);
+
+
/**
* @ingroup crypto
* Get the shared private key we use for anonymous users.
options,
&run, NULL)) ? 0 : 1;
GNUNET_free ((void*) argv);
+ GNUNET_CRYPTO_ecc_key_clear (&fcfs_zone_pkey);
return ret;
}
&run, NULL))
{
GNUNET_free ((void*) argv);
+ GNUNET_CRYPTO_ecc_key_clear (&zone_pkey);
return 1;
}
GNUNET_free ((void*) argv);
+ GNUNET_CRYPTO_ecc_key_clear (&zone_pkey);
return ret;
}
}
+/**
+ * @ingroup crypto
+ * Clear memory that was used to store a private key.
+ *
+ * @param pk location of the key
+ */
+void
+GNUNET_CRYPTO_ecc_key_clear (struct GNUNET_CRYPTO_EccPrivateKey *pk)
+{
+ memset (pk, 0, sizeof (struct GNUNET_CRYPTO_EccPrivateKey);
+}
+
+
/**
* Create a new private key. Caller must free return value.
*