[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r28441 - gnunet/src/testing
From: |
gnunet |
Subject: |
[GNUnet-SVN] r28441 - gnunet/src/testing |
Date: |
Wed, 7 Aug 2013 23:26:46 +0200 |
Author: grothoff
Date: 2013-08-07 23:26:46 +0200 (Wed, 07 Aug 2013)
New Revision: 28441
Modified:
gnunet/src/testing/testing.c
Log:
-fixing #2976
Modified: gnunet/src/testing/testing.c
===================================================================
--- gnunet/src/testing/testing.c 2013-08-07 14:42:35 UTC (rev 28440)
+++ gnunet/src/testing/testing.c 2013-08-07 21:26:46 UTC (rev 28441)
@@ -1148,8 +1148,7 @@
{
struct GNUNET_TESTING_Peer *peer;
struct GNUNET_DISK_FileHandle *fd;
- char *service_home;
- char hostkey_filename[128];
+ char *hostkey_filename;
char *config_filename;
char *libexec_binary;
char *emsg_;
@@ -1198,13 +1197,9 @@
if (NULL != pk)
GNUNET_CRYPTO_ecc_key_free (pk);
GNUNET_assert (GNUNET_OK ==
- GNUNET_CONFIGURATION_get_value_string (cfg, "PATHS",
- "SERVICEHOME",
- &service_home));
- /* FIXME: might be better to evaluate actual configuration option here... */
- GNUNET_snprintf (hostkey_filename, sizeof (hostkey_filename),
"%s/private.ecc",
- service_home);
- GNUNET_free (service_home);
+ GNUNET_CONFIGURATION_get_value_filename (cfg, "PEER",
+ "PRIVATE_KEY",
+ &hostkey_filename));
fd = GNUNET_DISK_file_open (hostkey_filename,
GNUNET_DISK_OPEN_CREATE | GNUNET_DISK_OPEN_WRITE,
GNUNET_DISK_PERM_USER_READ
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r28441 - gnunet/src/testing,
gnunet <=