View Issue Details

IDProjectCategoryView StatusLast Update
0010223GNUnetotherpublic2025-07-31 12:02
Reporterch3 Assigned Toch3  
PrioritynormalSeveritymajorReproducibilityN/A
Status assignedResolutionopen 
Summary0010223: PILS: find and replace obsolete usages of secret key to pid
DescriptionThe introduction of the pils service deprecates the reading and usage of the secret key to the peer id outside of pils. (Exceptions exist.)

Find the remaining usages and replace them with calls to pils!

(Sample code to look for is attached.)
Additional Information    char *keyfile;

    // FIXME remove
    if (GNUNET_OK !=
        GNUNET_CONFIGURATION_get_value_filename (GDS_cfg,
                                                 "PEER",
                                                 "PRIVATE_KEY",
                                                 &keyfile))
    {
      GNUNET_log_config_missing (GNUNET_ERROR_TYPE_ERROR,
                                 "PEER",
                                 "PRIVATE_KEY");
      GNUNET_SCHEDULER_shutdown ();
      return;
    }
    if (GNUNET_SYSERR ==
        GNUNET_CRYPTO_eddsa_key_from_file (keyfile,
                                           GNUNET_YES,
                                           &GDS_my_private_key))
    {
      GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
                  "Failed to setup peer's private key\n");
      GNUNET_free (keyfile);
      GNUNET_SCHEDULER_shutdown ();
      return;
    }
    GNUNET_free (keyfile);
  }
  GNUNET_CRYPTO_eddsa_key_get_public (&GDS_my_private_key,
                                      &GDS_my_identity.public_key);
TagsNo tags attached.

Activities

There are no notes attached to this issue.

Issue History

Date Modified Username Field Change
2025-07-31 12:02 ch3 New Issue
2025-07-31 12:02 ch3 Status new => assigned
2025-07-31 12:02 ch3 Assigned To => ch3