*/
struct GNUNET_TIME_Relative ratchet_time;
+/**
+ * How frequently do we send KEEPALIVE messages on idle connections?
+ */
+struct GNUNET_TIME_Relative keepalive_period;
+
/**
* Send a message to a client.
"need delay value");
ratchet_time = GNUNET_TIME_UNIT_HOURS;
}
+ if (GNUNET_OK !=
+ GNUNET_CONFIGURATION_get_value_time (c,
+ "CADET",
+ "REFRESHC_CONNECTION_TIME",
+ &keepalive_period))
+ {
+ GNUNET_log_config_invalid (GNUNET_ERROR_TYPE_WARNING,
+ "CADET",
+ "REFRESH_CONNECTION_TIME",
+ "need delay value");
+ keepalive_period = GNUNET_TIME_UNIT_MINUTES;
+ }
my_private_key = GNUNET_CRYPTO_eddsa_key_create_from_configuration (c);
if (NULL == my_private_key)
*/
extern struct GNUNET_TIME_Relative ratchet_time;
+/**
+ * How frequently do we send KEEPALIVE messages on idle connections?
+ */
+extern struct GNUNET_TIME_Relative keepalive_period;
+
/**
* Signal that shutdown is happening: prevent recovery measures.
*/
* @author Christian Grothoff
*
* FIXME:
+ * - implement keepalive
+ * - implement rekeying
* - check KX estate machine -- make sure it is never stuck!
* - clean up KX logic, including adding sender authentication
* - implement connection management (evaluate, kill old ones,