[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r24350 - gnunet/src/transport
From: |
gnunet |
Subject: |
[GNUnet-SVN] r24350 - gnunet/src/transport |
Date: |
Wed, 17 Oct 2012 11:33:54 +0200 |
Author: wachs
Date: 2012-10-17 11:33:54 +0200 (Wed, 17 Oct 2012)
New Revision: 24350
Added:
gnunet/src/transport/test_plugin_hostkey
Modified:
gnunet/src/transport/Makefile.am
gnunet/src/transport/test_plugin_transport.c
Log:
use precomputed hostkey for slow computers
Modified: gnunet/src/transport/Makefile.am
===================================================================
--- gnunet/src/transport/Makefile.am 2012-10-17 09:22:38 UTC (rev 24349)
+++ gnunet/src/transport/Makefile.am 2012-10-17 09:33:54 UTC (rev 24350)
@@ -839,6 +839,7 @@
EXTRA_DIST = \
+test_plugin_hostkey \
gnunet-transport-certificate-creation \
template_cfg_peer1.conf\
template_cfg_peer2.conf\
Added: gnunet/src/transport/test_plugin_hostkey
===================================================================
(Binary files differ)
Index: gnunet/src/transport/test_plugin_hostkey
===================================================================
--- gnunet/src/transport/test_plugin_hostkey 2012-10-17 09:22:38 UTC (rev
24349)
+++ gnunet/src/transport/test_plugin_hostkey 2012-10-17 09:33:54 UTC (rev
24350)
Property changes on: gnunet/src/transport/test_plugin_hostkey
___________________________________________________________________
Added: svn:mime-type
## -0,0 +1 ##
+application/octet-stream
\ No newline at end of property
Modified: gnunet/src/transport/test_plugin_transport.c
===================================================================
--- gnunet/src/transport/test_plugin_transport.c 2012-10-17 09:22:38 UTC
(rev 24349)
+++ gnunet/src/transport/test_plugin_transport.c 2012-10-17 09:33:54 UTC
(rev 24350)
@@ -43,6 +43,8 @@
#define WAIT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5)
#define TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 30)
+#define HOSTKEY_FILE "test_plugin_hostkey"
+
/**
* Our public key.
*/
@@ -547,6 +549,23 @@
return;
}
+ if (GNUNET_OK != GNUNET_DISK_file_test (HOSTKEY_FILE))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _("Hostkey `%s' missing. Exiting.\n"),
+ HOSTKEY_FILE);
+ }
+
+ if (GNUNET_OK != GNUNET_DISK_file_copy (HOSTKEY_FILE, keyfile))
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ _("Could not copy hostkey `%s' to destination `%s'.
Exiting.\n"),
+ HOSTKEY_FILE, keyfile);
+ end_badly_now ();
+ return;
+ }
+
+
max_connect_per_transport = (uint32_t) tneigh;
my_private_key = GNUNET_CRYPTO_rsa_key_create_from_file (keyfile);
GNUNET_free (keyfile);
@@ -674,6 +693,8 @@
};
int ret;
+ GNUNET_DISK_directory_remove ("/tmp/test-gnunetd-plugin-transport");
+
char *const argv_prog[] = {
"test_plugin_transport",
"-c",
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r24350 - gnunet/src/transport,
gnunet <=