diff options
Diffstat (limited to 'src/messenger/messenger_api_message.h')
-rw-r--r-- | src/messenger/messenger_api_message.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/messenger/messenger_api_message.h b/src/messenger/messenger_api_message.h index 3544993f9..1d3c12ff3 100644 --- a/src/messenger/messenger_api_message.h +++ b/src/messenger/messenger_api_message.h | |||
@@ -33,7 +33,8 @@ | |||
33 | 33 | ||
34 | #include "gnunet_messenger_service.h" | 34 | #include "gnunet_messenger_service.h" |
35 | 35 | ||
36 | #define GNUNET_MESSENGER_MAX_MESSAGE_SIZE (GNUNET_MAX_MESSAGE_SIZE - GNUNET_MIN_MESSAGE_SIZE) | 36 | #define GNUNET_MESSENGER_MAX_MESSAGE_SIZE (GNUNET_MAX_MESSAGE_SIZE \ |
37 | - GNUNET_MIN_MESSAGE_SIZE) | ||
37 | 38 | ||
38 | #define GNUNET_MESSENGER_PADDING_MIN (sizeof(uint16_t) + sizeof(char)) | 39 | #define GNUNET_MESSENGER_PADDING_MIN (sizeof(uint16_t) + sizeof(char)) |
39 | #define GNUNET_MESSENGER_PADDING_LEVEL0 (512) | 40 | #define GNUNET_MESSENGER_PADDING_LEVEL0 (512) |
@@ -188,7 +189,7 @@ sign_message_by_peer (struct GNUNET_MESSENGER_Message *message, | |||
188 | uint16_t length, | 189 | uint16_t length, |
189 | char *buffer, | 190 | char *buffer, |
190 | const struct GNUNET_HashCode *hash, | 191 | const struct GNUNET_HashCode *hash, |
191 | const struct GNUNET_CONFIGURATION_Handle* cfg); | 192 | const struct GNUNET_CONFIGURATION_Handle *cfg); |
192 | 193 | ||
193 | /** | 194 | /** |
194 | * Verifies the signature of a given <i>message</i> and its <i>hash</i> with a specific | 195 | * Verifies the signature of a given <i>message</i> and its <i>hash</i> with a specific |
@@ -252,7 +253,7 @@ typedef void (*GNUNET_MESSENGER_SignFunction)( | |||
252 | uint16_t length, | 253 | uint16_t length, |
253 | char *buffer, | 254 | char *buffer, |
254 | const struct GNUNET_HashCode *hash | 255 | const struct GNUNET_HashCode *hash |
255 | ); | 256 | ); |
256 | 257 | ||
257 | #define GNUNET_MESSENGER_PACK_MODE_ENVELOPE 0x1 | 258 | #define GNUNET_MESSENGER_PACK_MODE_ENVELOPE 0x1 |
258 | #define GNUNET_MESSENGER_PACK_MODE_UNKNOWN 0x0 | 259 | #define GNUNET_MESSENGER_PACK_MODE_UNKNOWN 0x0 |