Enforce maximum amount of bytes sent/received on meta-connections.

This is 2^{block_length_in_bits / 2 - 1}.
This commit is contained in:
Guus Sliepen 2016-10-30 15:19:12 +01:00
parent edc1efed3c
commit 979acc48ad
5 changed files with 39 additions and 0 deletions

View file

@ -81,6 +81,8 @@ typedef struct connection_t {
cipher_t *outcipher; /* Cipher we will use to send data to him */
digest_t *indigest;
digest_t *outdigest;
uint64_t inbudget;
uint64_t outbudget;
#endif
ecdsa_t *ecdsa; /* his public ECDSA key */