aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--contrib/experiments/nse/infiniband.conf1
-rw-r--r--contrib/testbed_configs/regex_profiler_infiniband.conf3
-rw-r--r--contrib/testbed_configs/testbed_cluster.conf1
-rw-r--r--contrib/testbed_configs/testbed_infiniband.conf1
-rw-r--r--contrib/testbed_configs/testbed_supermuc.conf1
-rw-r--r--doc/man/gnunet.conf.57
-rw-r--r--src/arm/arm.conf.in3
-rw-r--r--src/include/gnunet_crypto_lib.h10
-rw-r--r--src/rps/Makefile.am1
-rw-r--r--src/testbed/test_testbed_underlay.conf.in3
-rw-r--r--src/util/crypto_rsa.c28
-rw-r--r--src/util/os_network.c3
12 files changed, 42 insertions, 20 deletions
diff --git a/contrib/experiments/nse/infiniband.conf b/contrib/experiments/nse/infiniband.conf
index 1720e0131..e42baba95 100644
--- a/contrib/experiments/nse/infiniband.conf
+++ b/contrib/experiments/nse/infiniband.conf
@@ -26,7 +26,6 @@ WORKBITS = 0
26PROOFFILE = $SERVICEHOME/nse.proof 26PROOFFILE = $SERVICEHOME/nse.proof
27 27
28[arm] 28[arm]
29DEFAULTSERVICES = core nse
30UNIXPATH = /tmp/test-nse-service-arm.unix 29UNIXPATH = /tmp/test-nse-service-arm.unix
31 30
32[statistics] 31[statistics]
diff --git a/contrib/testbed_configs/regex_profiler_infiniband.conf b/contrib/testbed_configs/regex_profiler_infiniband.conf
index e4d6138ca..206423011 100644
--- a/contrib/testbed_configs/regex_profiler_infiniband.conf
+++ b/contrib/testbed_configs/regex_profiler_infiniband.conf
@@ -40,9 +40,6 @@ DISABLE_BF = YES
40# Keep datacache in-memory? (reduces IO) 40# Keep datacache in-memory? (reduces IO)
41IN_MEMORY = YES 41IN_MEMORY = YES
42 42
43[arm]
44DEFAULTSERVICES = core cadet dht statistics regexprofiler
45
46[fs] 43[fs]
47AUTOSTART = NO 44AUTOSTART = NO
48 45
diff --git a/contrib/testbed_configs/testbed_cluster.conf b/contrib/testbed_configs/testbed_cluster.conf
index d55761f10..6d646a0ce 100644
--- a/contrib/testbed_configs/testbed_cluster.conf
+++ b/contrib/testbed_configs/testbed_cluster.conf
@@ -46,7 +46,6 @@ AUTOSTART = YES
46USE_EPHEMERAL_KEYS = NO 46USE_EPHEMERAL_KEYS = NO
47 47
48[arm] 48[arm]
49DEFAULTSERVICES = core transport
50#PORT = 12366 49#PORT = 12366
51DEBUG = NO 50DEBUG = NO
52 51
diff --git a/contrib/testbed_configs/testbed_infiniband.conf b/contrib/testbed_configs/testbed_infiniband.conf
index aea11a18e..7ad50d77a 100644
--- a/contrib/testbed_configs/testbed_infiniband.conf
+++ b/contrib/testbed_configs/testbed_infiniband.conf
@@ -46,7 +46,6 @@ AUTOSTART = YES
46USE_EPHEMERAL_KEYS = NO 46USE_EPHEMERAL_KEYS = NO
47 47
48[arm] 48[arm]
49DEFAULTSERVICES = core
50#PORT = 12366 49#PORT = 12366
51DEBUG = NO 50DEBUG = NO
52 51
diff --git a/contrib/testbed_configs/testbed_supermuc.conf b/contrib/testbed_configs/testbed_supermuc.conf
index 02d64d62f..35c6e0789 100644
--- a/contrib/testbed_configs/testbed_supermuc.conf
+++ b/contrib/testbed_configs/testbed_supermuc.conf
@@ -49,7 +49,6 @@ AUTOSTART = YES
49USE_EPHEMERAL_KEYS = NO 49USE_EPHEMERAL_KEYS = NO
50 50
51[arm] 51[arm]
52DEFAULTSERVICES = transport core ats
53#PORT = 12366 52#PORT = 12366
54DEBUG = NO 53DEBUG = NO
55#PREFIX = strace -r -T -o /${WORK}/trace/${PEERID}.strace 54#PREFIX = strace -r -T -o /${WORK}/trace/${PEERID}.strace
diff --git a/doc/man/gnunet.conf.5 b/doc/man/gnunet.conf.5
index d668c81fa..2ef88c11e 100644
--- a/doc/man/gnunet.conf.5
+++ b/doc/man/gnunet.conf.5
@@ -75,15 +75,16 @@ This example is a simple way to get started, using a server that has a known lis
75 OPTIONS = \-b 75 OPTIONS = \-b
76 SERVERS = http://v9.gnunet.org:58080/ 76 SERVERS = http://v9.gnunet.org:58080/
77 77
78 [arm]
79 DEFAULTSERVICES = topology hostlist fs
80
81 [nat] 78 [nat]
82 BEHIND_NAT = YES 79 BEHIND_NAT = YES
83 ENABLE_UPNP = YES 80 ENABLE_UPNP = YES
84 DISABLEV6 = YES 81 DISABLEV6 = YES
85 EXTERNAL_ADDRESS = 157.166.249.10 82 EXTERNAL_ADDRESS = 157.166.249.10
86 83
84 [arm]
85 SYSTEM_ONLY = YES
86 USER_ONLY = NO
87
87.SH FILES 88.SH FILES
88.TP 89.TP
89~/.config/gnunet.conf 90~/.config/gnunet.conf
diff --git a/src/arm/arm.conf.in b/src/arm/arm.conf.in
index 53731586b..20d3e1dc0 100644
--- a/src/arm/arm.conf.in
+++ b/src/arm/arm.conf.in
@@ -5,9 +5,6 @@ BINARY = gnunet-service-arm
5ACCEPT_FROM = 127.0.0.1; 5ACCEPT_FROM = 127.0.0.1;
6ACCEPT_FROM6 = ::1; 6ACCEPT_FROM6 = ::1;
7 7
8
9DEFAULTSERVICES = topology hostlist dht nse cadet fs revocation
10
11# Special case, uses user runtime dir even for per-system service. 8# Special case, uses user runtime dir even for per-system service.
12UNIXPATH = $GNUNET_USER_RUNTIME_DIR/gnunet-service-arm.sock 9UNIXPATH = $GNUNET_USER_RUNTIME_DIR/gnunet-service-arm.sock
13UNIX_MATCH_UID = YES 10UNIX_MATCH_UID = YES
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index 38a3ab3b6..eb28b8ffd 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -1753,6 +1753,16 @@ GNUNET_CRYPTO_rsa_public_key_hash (const struct GNUNET_CRYPTO_rsa_PublicKey *key
1753 1753
1754 1754
1755/** 1755/**
1756 * Obtain the length of the RSA key in bits.
1757 *
1758 * @param key the public key to introspect
1759 * @return length of the key in bits
1760 */
1761unsigned int
1762GNUNET_CRYPTO_rsa_public_key_len (const struct GNUNET_CRYPTO_rsa_PublicKey *key);
1763
1764
1765/**
1756 * Free memory occupied by the public key. 1766 * Free memory occupied by the public key.
1757 * 1767 *
1758 * @param key pointer to the memory to free 1768 * @param key pointer to the memory to free
diff --git a/src/rps/Makefile.am b/src/rps/Makefile.am
index 09369dc73..b1fd3d47b 100644
--- a/src/rps/Makefile.am
+++ b/src/rps/Makefile.am
@@ -112,4 +112,3 @@ gnunet_rps_profiler_LDADD = $(ld_rps_test_lib)
112 112
113EXTRA_DIST = \ 113EXTRA_DIST = \
114 test_rps.conf 114 test_rps.conf
115
diff --git a/src/testbed/test_testbed_underlay.conf.in b/src/testbed/test_testbed_underlay.conf.in
index 4da34b89b..5799b5253 100644
--- a/src/testbed/test_testbed_underlay.conf.in
+++ b/src/testbed/test_testbed_underlay.conf.in
@@ -11,6 +11,3 @@ FORCESTART = YES
11 11
12[dv] 12[dv]
13AUTOSTART = NO 13AUTOSTART = NO
14
15[arm]
16DEFAULTSERVICES = core transport testbed-underlay
diff --git a/src/util/crypto_rsa.c b/src/util/crypto_rsa.c
index d1ca760cf..58503b734 100644
--- a/src/util/crypto_rsa.c
+++ b/src/util/crypto_rsa.c
@@ -527,6 +527,32 @@ GNUNET_CRYPTO_rsa_private_key_cmp (struct GNUNET_CRYPTO_rsa_PrivateKey *p1,
527 527
528 528
529/** 529/**
530 * Obtain the length of the RSA key in bits.
531 *
532 * @param key the public key to introspect
533 * @return length of the key in bits
534 */
535unsigned int
536GNUNET_CRYPTO_rsa_public_key_len (const struct GNUNET_CRYPTO_rsa_PublicKey *key)
537{
538 gcry_mpi_t n;
539 int ret;
540 unsigned int rval;
541
542 ret = key_from_sexp (&n, key->sexp, "rsa", "n");
543 if (0 != ret)
544 {
545 /* this is no public RSA key */
546 GNUNET_break (0);
547 return 0;
548 }
549 rval = gcry_mpi_get_nbits (n);
550 gcry_mpi_release (n);
551 return rval;
552}
553
554
555/**
530 * Destroy a blinding key 556 * Destroy a blinding key
531 * 557 *
532 * @param bkey the blinding key to destroy 558 * @param bkey the blinding key to destroy
@@ -549,7 +575,7 @@ GNUNET_CRYPTO_rsa_blinding_key_free (struct GNUNET_CRYPTO_rsa_BlindingKey *bkey)
549 */ 575 */
550size_t 576size_t
551GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey, 577GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey,
552 char **buffer) 578 char **buffer)
553{ 579{
554 size_t n; 580 size_t n;
555 char *b; 581 char *b;
diff --git a/src/util/os_network.c b/src/util/os_network.c
index 715fe5bd6..19b60b6b4 100644
--- a/src/util/os_network.c
+++ b/src/util/os_network.c
@@ -18,7 +18,6 @@
18 Boston, MA 02110-1301, USA. 18 Boston, MA 02110-1301, USA.
19 19
20*/ 20*/
21
22/** 21/**
23 * @file util/os_network.c 22 * @file util/os_network.c
24 * @brief function to determine available network interfaces 23 * @brief function to determine available network interfaces
@@ -38,7 +37,7 @@
38 * @brief Enumerate all network interfaces 37 * @brief Enumerate all network interfaces
39 * 38 *
40 * @param proc the callback function 39 * @param proc the callback function
41 * @param proc_cls closure for proc 40 * @param proc_cls closure for @a proc
42 */ 41 */
43void 42void
44GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc, 43GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc,