diff options
author | jospaeth <spaethj@in.tum.de> | 2020-09-02 13:08:00 +0200 |
---|---|---|
committer | jospaeth <spaethj@in.tum.de> | 2020-09-02 13:08:00 +0200 |
commit | 7c40b060786c96fca289ab9d2ba4bee760c8ac0f (patch) | |
tree | 5888944515d6a96fcaa29544e670ae02071cd0d5 /src/escrow/plugin_escrow_gns.c | |
parent | db702fdd245d35599d873f5de33ba886256295a6 (diff) | |
download | gnunet-7c40b060786c96fca289ab9d2ba4bee760c8ac0f.tar.gz gnunet-7c40b060786c96fca289ab9d2ba4bee760c8ac0f.zip |
remove logging of private keys
Diffstat (limited to 'src/escrow/plugin_escrow_gns.c')
-rw-r--r-- | src/escrow/plugin_escrow_gns.c | 18 |
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, | |||
874 | { | 874 | { |
875 | struct ESCROW_GnsPluginOperation *p_op; | 875 | struct ESCROW_GnsPluginOperation *p_op; |
876 | struct GNUNET_CRYPTO_EcdsaPrivateKey *curr_pk; | 876 | struct GNUNET_CRYPTO_EcdsaPrivateKey *curr_pk; |
877 | char *curr_name, *curr_pk_string; | 877 | char *curr_name; |
878 | struct IdentityOperationEntry *curr_id_op; | 878 | struct IdentityOperationEntry *curr_id_op; |
879 | struct PkEntry *curr_pk_entry; | 879 | struct PkEntry *curr_pk_entry; |
880 | int exists_ret; | 880 | int exists_ret; |
@@ -888,13 +888,6 @@ create_escrow_identities (struct ESCROW_PluginOperationWrapper *plugin_op_wrap, | |||
888 | curr_pk = derive_private_key (name, p_op->userSecret, i); | 888 | curr_pk = derive_private_key (name, p_op->userSecret, i); |
889 | curr_name = get_escrow_id_name (name, i); | 889 | curr_name = get_escrow_id_name (name, i); |
890 | 890 | ||
891 | // TODO: REMOVE THIS LOGGING BEFORE PRODUCTIONAL USE! | ||
892 | curr_pk_string = GNUNET_CRYPTO_ecdsa_private_key_to_string (curr_pk); | ||
893 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
894 | "derived private key: %s\n", | ||
895 | curr_pk_string); | ||
896 | GNUNET_free (curr_pk_string); | ||
897 | |||
898 | // check if the escrow identity already exists | 891 | // check if the escrow identity already exists |
899 | exists_ret = escrow_id_exists (curr_name, curr_pk); | 892 | exists_ret = escrow_id_exists (curr_name, curr_pk); |
900 | if (GNUNET_SYSERR == exists_ret) | 893 | if (GNUNET_SYSERR == exists_ret) |
@@ -1327,7 +1320,7 @@ restore_private_key (struct ESCROW_PluginOperationWrapper *plugin_op_wrap, | |||
1327 | struct ESCROW_GnsPluginOperation *p_op; | 1320 | struct ESCROW_GnsPluginOperation *p_op; |
1328 | struct GNUNET_CRYPTO_EcdsaPrivateKey *curr_escrow_pk; | 1321 | struct GNUNET_CRYPTO_EcdsaPrivateKey *curr_escrow_pk; |
1329 | struct GNUNET_CRYPTO_EcdsaPublicKey curr_escrow_pub; | 1322 | struct GNUNET_CRYPTO_EcdsaPublicKey curr_escrow_pub; |
1330 | char *label, *curr_escrow_pk_string; | 1323 | char *label; |
1331 | struct GnsLookupRequestEntry *curr_gns_lr; | 1324 | struct GnsLookupRequestEntry *curr_gns_lr; |
1332 | struct GNUNET_TIME_Relative delay; | 1325 | struct GNUNET_TIME_Relative delay; |
1333 | struct TimeoutTaskEntry *curr_tt; | 1326 | struct TimeoutTaskEntry *curr_tt; |
@@ -1350,13 +1343,6 @@ restore_private_key (struct ESCROW_PluginOperationWrapper *plugin_op_wrap, | |||
1350 | { | 1343 | { |
1351 | curr_escrow_pk = derive_private_key (p_op->egoName, p_op->userSecret, i); | 1344 | curr_escrow_pk = derive_private_key (p_op->egoName, p_op->userSecret, i); |
1352 | 1345 | ||
1353 | // TODO: REMOVE THIS LOGGING BEFORE PRODUCTIONAL USE! | ||
1354 | curr_escrow_pk_string = GNUNET_CRYPTO_ecdsa_private_key_to_string (curr_escrow_pk); | ||
1355 | GNUNET_log (GNUNET_ERROR_TYPE_DEBUG, | ||
1356 | "derived private key: %s\n", | ||
1357 | curr_escrow_pk_string); | ||
1358 | GNUNET_free (curr_escrow_pk_string); | ||
1359 | |||
1360 | curr_gns_lr = GNUNET_new (struct GnsLookupRequestEntry); | 1346 | curr_gns_lr = GNUNET_new (struct GnsLookupRequestEntry); |
1361 | curr_gns_lr->plugin_op_wrap = plugin_op_wrap; | 1347 | curr_gns_lr->plugin_op_wrap = plugin_op_wrap; |
1362 | curr_gns_lr->i = i; | 1348 | curr_gns_lr->i = i; |