summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-09-02 13:08:00 +0200
committerjospaeth <spaethj@in.tum.de>2020-09-02 13:08:00 +0200
commit7c40b060786c96fca289ab9d2ba4bee760c8ac0f (patch)
tree5888944515d6a96fcaa29544e670ae02071cd0d5
parentdb702fdd245d35599d873f5de33ba886256295a6 (diff)
remove logging of private keys
-rw-r--r--src/escrow/plugin_escrow_gns.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/escrow/plugin_escrow_gns.c b/src/escrow/plugin_escrow_gns.c
index 16dc95bea..8cf0aac61 100644
--- a/src/escrow/plugin_escrow_gns.c
+++ b/src/escrow/plugin_escrow_gns.c
@@ -874,7 +874,7 @@ create_escrow_identities (struct ESCROW_PluginOperationWrapper *plugin_op_wrap,
{
struct ESCROW_GnsPluginOperation *p_op;
struct GNUNET_CRYPTO_EcdsaPrivateKey *curr_pk;
- char *curr_name, *curr_pk_string;
+ char *curr_name;
struct IdentityOperationEntry *curr_id_op;
struct PkEntry *curr_pk_entry;
int exists_ret;
@@ -888,13 +888,6 @@ create_escrow_identities (struct ESCROW_PluginOperationWrapper *plugin_op_wrap,
curr_pk = derive_private_key (name, p_op->userSecret, i);
curr_name = get_escrow_id_name (name, i);
- // TODO: REMOVE THIS LOGGING BEFORE PRODUCTIONAL USE!
- curr_pk_string = GNUNET_CRYPTO_ecdsa_private_key_to_string (curr_pk);
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "derived private key: %s\n",
- curr_pk_string);
- GNUNET_free (curr_pk_string);
-
// check if the escrow identity already exists
exists_ret = escrow_id_exists (curr_name, curr_pk);
if (GNUNET_SYSERR == exists_ret)
@@ -1327,7 +1320,7 @@ restore_private_key (struct ESCROW_PluginOperationWrapper *plugin_op_wrap,
struct ESCROW_GnsPluginOperation *p_op;
struct GNUNET_CRYPTO_EcdsaPrivateKey *curr_escrow_pk;
struct GNUNET_CRYPTO_EcdsaPublicKey curr_escrow_pub;
- char *label, *curr_escrow_pk_string;
+ char *label;
struct GnsLookupRequestEntry *curr_gns_lr;
struct GNUNET_TIME_Relative delay;
struct TimeoutTaskEntry *curr_tt;
@@ -1350,13 +1343,6 @@ restore_private_key (struct ESCROW_PluginOperationWrapper *plugin_op_wrap,
{
curr_escrow_pk = derive_private_key (p_op->egoName, p_op->userSecret, i);
- // TODO: REMOVE THIS LOGGING BEFORE PRODUCTIONAL USE!
- curr_escrow_pk_string = GNUNET_CRYPTO_ecdsa_private_key_to_string (curr_escrow_pk);
- GNUNET_log (GNUNET_ERROR_TYPE_DEBUG,
- "derived private key: %s\n",
- curr_escrow_pk_string);
- GNUNET_free (curr_escrow_pk_string);
-
curr_gns_lr = GNUNET_new (struct GnsLookupRequestEntry);
curr_gns_lr->plugin_op_wrap = plugin_op_wrap;
curr_gns_lr->i = i;