~ubuntu-dev/ubuntu/lucid/dovecot/lucid-201002101901

« back to all changes in this revision

Viewing changes to src/auth/auth-worker-server.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short
  • Date: 2008-05-26 09:51:01 UTC
  • mfrom: (1.10.12 upstream)
  • Revision ID: james.westby@ubuntu.com-20080526095101-y0zxqc8ofd9j1aa5
Tags: 1:1.0.13-4ubuntu1
* Merge from debian unstable, remaining changes:
  - DebainMaintainerField
  - Use Snakeoil SSL certificate by default.
    + debian/control: Depend on ssl-cert
    + debian/patches/ssl-cert-snakeoil.dpatch: Change default SSL cert paths
      to snakeoil.
    + debian/dovecot-common.postinst: Relax grep for SSL_* a bit.
  - Fast TearDown:
    + debian/rules: Call dh_installinit in 'multiuser' mode.
    + debian/control: Depend on newer sysv-rc for this.
    + debian/dovecot-common.postinst: Remove stp script symlinks from rc0 and rc6 on upgrades.
      Need to be kept unil next LTS release.
  - Add autopkgtest in debian/tests/*.
  - Don't fail in postinst if dovecot-{sql,ldap} is missing. (LP: #153161)
  - Dropped upstream-mail-group-fixes.dpatch. No longer needed.
  - Dropped upstream-invalid-password-fixes.dpatch. No longer needed.
  - debian/dovecot-common.init: Check to see if there is an /etc/inetd.conf. (LP: #208411)
  - debian/patches/login-max-processes-count-warning.dpatch: Tell the user
    that they have reached the maxium number of processes count. (LP: #189616)

Show diffs side-by-side

added added

removed removed

Lines of Context:
256
256
        return buffer_append_space_unsafe(conn->requests, sizeof(*request));
257
257
}
258
258
 
259
 
void auth_worker_call(struct auth_request *auth_request, const char *data,
 
259
void auth_worker_call(struct auth_request *auth_request,
 
260
                      struct auth_stream_reply *data,
260
261
                      auth_worker_callback_t *callback)
261
262
{
262
263
        struct auth_worker_connection *conn;
263
264
        struct auth_worker_request *request;
264
 
        const char *reply;
 
265
        const char *reply, *data_str;
265
266
        struct const_iovec iov[3];
266
267
 
267
268
        conn = auth_worker_find_free();
279
280
                }
280
281
        }
281
282
 
 
283
        data_str = auth_stream_reply_export(data);
282
284
        iov[0].iov_base = t_strdup_printf("%d\t", ++conn->id_counter);
283
285
        iov[0].iov_len = strlen(iov[0].iov_base);
284
 
        iov[1].iov_base = data;
285
 
        iov[1].iov_len = strlen(data);
 
286
        iov[1].iov_base = data_str;
 
287
        iov[1].iov_len = strlen(data_str);
286
288
        iov[2].iov_base = "\n";
287
289
        iov[2].iov_len = 1;
288
290