PROOFFILE = $SERVICEHOME/nse.proof
[arm]
-DEFAULTSERVICES = core nse
UNIXPATH = /tmp/test-nse-service-arm.unix
[statistics]
# Keep datacache in-memory? (reduces IO)
IN_MEMORY = YES
-[arm]
-DEFAULTSERVICES = core cadet dht statistics regexprofiler
-
[fs]
AUTOSTART = NO
USE_EPHEMERAL_KEYS = NO
[arm]
-DEFAULTSERVICES = core transport
#PORT = 12366
DEBUG = NO
USE_EPHEMERAL_KEYS = NO
[arm]
-DEFAULTSERVICES = core
#PORT = 12366
DEBUG = NO
USE_EPHEMERAL_KEYS = NO
[arm]
-DEFAULTSERVICES = transport core ats
#PORT = 12366
DEBUG = NO
#PREFIX = strace -r -T -o /${WORK}/trace/${PEERID}.strace
OPTIONS = \-b
SERVERS = http://v9.gnunet.org:58080/
- [arm]
- DEFAULTSERVICES = topology hostlist fs
-
[nat]
BEHIND_NAT = YES
ENABLE_UPNP = YES
DISABLEV6 = YES
EXTERNAL_ADDRESS = 157.166.249.10
+ [arm]
+ SYSTEM_ONLY = YES
+ USER_ONLY = NO
+
.SH FILES
.TP
~/.config/gnunet.conf
ACCEPT_FROM = 127.0.0.1;
ACCEPT_FROM6 = ::1;
-
-DEFAULTSERVICES = topology hostlist dht nse cadet fs revocation
-
# Special case, uses user runtime dir even for per-system service.
UNIXPATH = $GNUNET_USER_RUNTIME_DIR/gnunet-service-arm.sock
UNIX_MATCH_UID = YES
struct GNUNET_HashCode *hc);
+/**
+ * Obtain the length of the RSA key in bits.
+ *
+ * @param key the public key to introspect
+ * @return length of the key in bits
+ */
+unsigned int
+GNUNET_CRYPTO_rsa_public_key_len (const struct GNUNET_CRYPTO_rsa_PublicKey *key);
+
+
/**
* Free memory occupied by the public key.
*
EXTRA_DIST = \
test_rps.conf
-
[dv]
AUTOSTART = NO
-
-[arm]
-DEFAULTSERVICES = core transport testbed-underlay
}
+/**
+ * Obtain the length of the RSA key in bits.
+ *
+ * @param key the public key to introspect
+ * @return length of the key in bits
+ */
+unsigned int
+GNUNET_CRYPTO_rsa_public_key_len (const struct GNUNET_CRYPTO_rsa_PublicKey *key)
+{
+ gcry_mpi_t n;
+ int ret;
+ unsigned int rval;
+
+ ret = key_from_sexp (&n, key->sexp, "rsa", "n");
+ if (0 != ret)
+ {
+ /* this is no public RSA key */
+ GNUNET_break (0);
+ return 0;
+ }
+ rval = gcry_mpi_get_nbits (n);
+ gcry_mpi_release (n);
+ return rval;
+}
+
+
/**
* Destroy a blinding key
*
*/
size_t
GNUNET_CRYPTO_rsa_blinding_key_encode (const struct GNUNET_CRYPTO_rsa_BlindingKey *bkey,
- char **buffer)
+ char **buffer)
{
size_t n;
char *b;
Boston, MA 02110-1301, USA.
*/
-
/**
* @file util/os_network.c
* @brief function to determine available network interfaces
* @brief Enumerate all network interfaces
*
* @param proc the callback function
- * @param proc_cls closure for proc
+ * @param proc_cls closure for @a proc
*/
void
GNUNET_OS_network_interfaces_list (GNUNET_OS_NetworkInterfaceProcessor proc,