- if(EVP_EncryptUpdate(cl->cipher_outctx, cl->buffer + cl->buflen, NULL, inbuf, length) != 1)
- {
- syslog(LOG_ERR, _("Error during encryption of outgoing metadata to %s (%s)"), cl->name, cl->hostname);
- return -1;
- }
+ EVP_EncryptUpdate(cl->cipher_outctx, outbuf, &outlen, buffer, length);