aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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
6 files changed, 38 insertions, 10 deletions
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,