Move RSA key generation into the wrappers.

This commit is contained in:
Guus Sliepen 2008-12-14 12:47:26 +00:00
parent 911c05f873
commit 551cd19406
18 changed files with 413 additions and 68 deletions

View file

@ -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) {