Move RSA key generation into the wrappers.
This commit is contained in:
parent
911c05f873
commit
551cd19406
18 changed files with 413 additions and 68 deletions
|
|
@ -112,7 +112,7 @@ bool receive_meta(connection_t *c) {
|
|||
bufp = endp;
|
||||
} else {
|
||||
size_t outlen = inlen;
|
||||
ifdebug(META) logger(LOG_DEBUG, _("Received encrypted %d bytes"), inlen);
|
||||
ifdebug(META) logger(LOG_DEBUG, _("Received encrypted %zu bytes"), inlen);
|
||||
evbuffer_expand(c->buffer->input, c->buffer->input->off + inlen);
|
||||
|
||||
if(!cipher_decrypt(&c->incipher, bufp, inlen, c->buffer->input->buffer + c->buffer->input->off, &outlen, false) || inlen != outlen) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue