aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/include/gauger.h (renamed from src/include/gnunet_gauger.h)0
-rw-r--r--src/include/gnunet_constants.h8
-rw-r--r--src/include/gnunet_crypto_lib.h8
3 files changed, 12 insertions, 4 deletions
diff --git a/src/include/gnunet_gauger.h b/src/include/gauger.h
index 063bf763d..063bf763d 100644
--- a/src/include/gnunet_gauger.h
+++ b/src/include/gauger.h
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h
index 56a868e2e..a0951b055 100644
--- a/src/include/gnunet_constants.h
+++ b/src/include/gnunet_constants.h
@@ -49,13 +49,13 @@ extern "C"
49 * After how long do we consider a connection to a peer dead 49 * After how long do we consider a connection to a peer dead
50 * if we don't receive messages from the peer? 50 * if we don't receive messages from the peer?
51 */ 51 */
52#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 5) 52#define GNUNET_CONSTANTS_IDLE_CONNECTION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 3)
53 53
54/** 54/**
55 * After how long do we consider a connection to a peer dead 55 * After how long do we consider a connection to a peer dead
56 * if we got an explicit disconnect and were unable to reconnect? 56 * if we got an explicit disconnect and were unable to reconnect?
57 */ 57 */
58#define GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 5) 58#define GNUNET_CONSTANTS_DISCONNECT_SESSION_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 3)
59 59
60/** 60/**
61 * How long do we delay reading more from a peer after a quota violation? 61 * How long do we delay reading more from a peer after a quota violation?
@@ -76,7 +76,7 @@ extern "C"
76#define GNUNET_CONSTANTS_SERVICE_RETRY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 500) 76#define GNUNET_CONSTANTS_SERVICE_RETRY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 500)
77 77
78/** 78/**
79 * After how long do we consider a service irresponsive 79 * After how long do we consider a service unresponsive
80 * even if we assume that the service commonly does not 80 * even if we assume that the service commonly does not
81 * respond instantly (DNS, Database, etc.). 81 * respond instantly (DNS, Database, etc.).
82 */ 82 */
@@ -85,7 +85,7 @@ extern "C"
85/** 85/**
86 * How long do we delay messages to get larger packet sizes (CORKing)? 86 * How long do we delay messages to get larger packet sizes (CORKing)?
87 */ 87 */
88#define GNUNET_CONSTANTS_MAX_CORK_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_SECONDS, 1) 88#define GNUNET_CONSTANTS_MAX_CORK_DELAY GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MILLISECONDS, 10)
89 89
90/** 90/**
91 * Until which load do we consider the peer overly idle 91 * Until which load do we consider the peer overly idle
diff --git a/src/include/gnunet_crypto_lib.h b/src/include/gnunet_crypto_lib.h
index d0d726609..922dda43b 100644
--- a/src/include/gnunet_crypto_lib.h
+++ b/src/include/gnunet_crypto_lib.h
@@ -691,6 +691,14 @@ struct GNUNET_CRYPTO_RsaPrivateKey *GNUNET_CRYPTO_rsa_key_create (void);
691 691
692 692
693/** 693/**
694 * Get the size of a key file.
695 *
696 * @return size of a gnunet private key
697 */
698uint32_t
699GNUNET_CRYPTO_rsa_key_size ();
700
701/**
694 * Create a new private key by reading it from a file. If the 702 * Create a new private key by reading it from a file. If the
695 * files does not exist, create a new key and write it to the 703 * files does not exist, create a new key and write it to the
696 * file. Caller must free return value. Note that this function 704 * file. Caller must free return value. Note that this function