X-Git-Url: https://www.tinc-vpn.org/git/browse?p=tinc;a=blobdiff_plain;f=src%2Fprotocol_auth.c;h=96e6b6e2953ccc39d34944aa9e22f87425010e3b;hp=46b38eb8185924bdb0636e05d7fcd6c57c9d71f1;hb=6af82260ba2d6bbf296932aa95dddec0be5abcbb;hpb=3c37fe38019ec9c08be6158a4f64128fc83ed605 diff --git a/src/protocol_auth.c b/src/protocol_auth.c index 46b38eb8..96e6b6e2 100644 --- a/src/protocol_auth.c +++ b/src/protocol_auth.c @@ -195,6 +195,7 @@ bool send_metakey(connection_t *c) { return false; } + c->outbudget = (uint64_t)1 << EVP_CIPHER_key_length(c->outcipher) * 4; c->status.encryptout = true; } @@ -273,6 +274,7 @@ bool metakey_h(connection_t *c) { return false; } + c->inbudget = (uint64_t)1 << EVP_CIPHER_key_length(c->incipher) * 4; c->status.decryptin = true; } else { c->incipher = NULL;