#include "xalloc.h"
bool send_id(connection_t *c) {
- if(proxytype && c->outgoing)
- if(!send_proxyrequest(c))
- return false;
+ if(proxytype && c->outgoing && !c->status.proxy_passed)
+ return send_proxyrequest(c);
return send_request(c, "%d %s %d", ID, myself->connection->name,
myself->connection->protocol_version);
return false;
}
+ c->outbudget = (uint64_t)1 << EVP_CIPHER_key_length(c->outcipher) * 4;
c->status.encryptout = true;
}
return false;
}
+ c->inbudget = (uint64_t)1 << EVP_CIPHER_key_length(c->incipher) * 4;
c->status.decryptin = true;
} else {
c->incipher = NULL;