- if(c->status.encryptout) {
- EVP_EncryptUpdate(c->outctx, outbuf, &outlen, buffer, length);
- bufp = outbuf;
- length = outlen;
- } else
- bufp = buffer;
-
- while(length) {
- result = write(c->socket, bufp, length);
- if(result <= 0) {
- if(errno == EINTR)
- continue;
- logger(LOG_ERR, _("Sending meta data to %s (%s) failed: %s"), c->name,
- c->hostname, strerror(errno));
- return false;
- }
- bufp += result;
- length -= result;
- }
-