aboutsummaryrefslogtreecommitdiff
path: root/src/util/mq.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-05-20 00:35:13 +0200
committerChristian Grothoff <christian@grothoff.org>2018-05-20 00:36:20 +0200
commit0be37e812d034754eb725701f237fbc81b973904 (patch)
treec50481209ec97b5dbbd075489255477c5e761d3d /src/util/mq.c
parentc227e3f00efb4b3677e9b85c0273a7bf5fbcb4a9 (diff)
downloadgnunet-0be37e812d034754eb725701f237fbc81b973904.tar.gz
gnunet-0be37e812d034754eb725701f237fbc81b973904.zip
fix off-by-one error in cadet connection construction, also enforce better timeouts for retransmissions of handshake
Diffstat (limited to 'src/util/mq.c')
-rw-r--r--src/util/mq.c26
1 files changed, 26 insertions, 0 deletions
diff --git a/src/util/mq.c b/src/util/mq.c
index dbcce704d..81a42e0c6 100644
--- a/src/util/mq.c
+++ b/src/util/mq.c
@@ -1071,6 +1071,32 @@ GNUNET_MQ_set_options (struct GNUNET_MQ_Handle *mq,
1071 1071
1072 1072
1073/** 1073/**
1074 * Obtain message contained in envelope.
1075 *
1076 * @param env the envelope
1077 * @return message contained in the envelope
1078 */
1079const struct GNUNET_MessageHeader *
1080GNUNET_MQ_env_get_msg (const struct GNUNET_MQ_Envelope *env)
1081{
1082 return env->mh;
1083}
1084
1085
1086/**
1087 * Return next envelope in queue.
1088 *
1089 * @param env a queued envelope
1090 * @return next one, or NULL
1091 */
1092const struct GNUNET_MQ_Envelope *
1093GNUNET_MQ_env_next (const struct GNUNET_MQ_Envelope *env)
1094{
1095 return env->next;
1096}
1097
1098
1099/**
1074 * Register function to be called whenever @a mq is being 1100 * Register function to be called whenever @a mq is being
1075 * destroyed. 1101 * destroyed.
1076 * 1102 *